weaveworks/weave-gitops-enterprise

cannot bootstrap flux interactive with error `scheme "" is not supported`

enekofb opened this issue · 0 comments

Describe the bug

When tried to bootstrap interactive including flux with something like

gitops  bootstrap --password=admin123 \                                                        
     --private-key=/Users/enekofb/.ssh/weaveworks/dev  --private-key-password="" \
     --version="0.37.0" --git-username=enekofb \
     --repo-url=https://github.com/enekofb/cli-dev.git  \
     --branch="main"  \
     --repo-path=clusters/management

bootstrapping fails with error failed to create authentication options for : scheme "" is not supported

► creating client to cluster
✔ created client to cluster: https://127.0.0.1:55365
◎ checking flux
► verifying flux installation
✗ flux installed error: ► checking prerequisites
✔ Kubernetes 1.27.3 >=1.25.0-0
► checking controllers
✗ no controllers found in the 'flux-system' namespace with the label selector 'app.kubernetes.io/part-of=flux'
► checking crds
✗ no crds found with the label selector 'app.kubernetes.io/part-of=flux'
✗ check failed
. flux is not bootstrapped in 'flux-system' namespace: more info https://fluxcd.io/flux/installation
◎ bootstrap flux
do you want to bootstrap flux using the generic way: y
◎ flux repository configuration
please enter your flux git https or ssh repository url: https://github.com/enekofb/cli-dev.git
please enter your flux git repository branch (default: main): main
please enter your flux path for your cluster (default: clusters/my-cluster): clusters/management
► configured repo: https://github.com/enekofb/cli-dev.git
◎ git credentials
please enter your git username: enekofb
please enter your git authentication password/token with valid creds: ****************************************
✔ please enter your git authentication password/token with valid creds: ****************************************█
Error: cannot execute bootstrap: cannot execute 'git credentials': failed to bootstrap flux: exit status 1:✗ failed to create authentication options for : scheme "" is not supported

To Reproduce

Run the previous command

Actual behaviour

Bootstrapping fails

Expected behaviour

bootstrapped flux and weave gitops without error