-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flux bootstrap for a project hosted on GitLab on-prem #4218
Comments
What's the reason for using |
the repository already exists, |
what is the right way to bootstrap with existing gitlab repo |
Run it without |
Let me try and update |
az aks get-credentials --resource-group $AKS_RG --name $AKS_NAME az aks get-credentials --resource-group ibcm_yyyyyyy_dev_uc5-aks-developb5f3-rg --name ibcm-yyyyyyy-dev-uc5-cluster-developb5f3 flux bootstrap gitlab --hostname=$GITLAB_URL --owner=$GITLAB_GROUP --repository=$GITLAB_REPO --branch=flux_test --path=manifests/staging --registry=azurecr.io/$ACR_NAME/fluxcd --image-pull-secret=acr-auth --token-auth --verbose ++ flux bootstrap gitlab --hostname=https://xxxxxxxxxx/ --owner=yyyyyyy/use-case-5-kubernetes-automation --repository=AzureIaCProject-UC5AKS --branch=flux_test --path=manifests/staging --registry=azurecr.io/[MASKED]/fluxcd --image-pull-secret=acr-auth --token-auth --verbose ► connecting to https://xxxxxxxxxx/ ✗ failed to create new Git repository "https://xxxxxxxxxx//yyyyyyy/use-case-5-kubernetes-automation/AzureIaCProject-UC5AKS": multiple errors occurred:
Cleaning up project directory and file based variables. Still Same error |
What version of Flux are you using? Is it 2.1.0? |
yes the version is 2.1.0 |
@somtochiama could you please have a look? |
@lakshman-au I have deployed a self-hosted version of GitLab but I have been unable to recreate this error. I tried to have the same exact command including pushing flux to an acr registry. Can you give more details about your GitLab repository? Does the name of the repository/group) differ from the slug(the path you see in the URL in the browser?) or are there any special characters in some of the values you have omitted? Any extra info will be helpful Also what Gitlab version are you running, I tested on |
Gitlab Enterprise version: [15.11.9-ee] flux bootstrap gitlab --author-email=lakshmanakumar.duraipandi@credit-suisse.com --author-name="Lakshman Duraipandi" --hostname=$GITLAB_URL +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Though I have the option --insecure-skip-tls-verify , still getting certifcate error. |
The error you are getting now differs from the one posted when you opened the issue. As for the TLS error you are getting, |
I just added few options ( author email,author-name,commit-message), nothing else I changed |
Can you still reproduce the first error? |
I could not reproduce the first error. The issue is resolved after adding --cafile option. Thanks a lot. |
Having an AKS cluster in air-gapped environment and gitlab hosted on-prem, I am trying to bootstrap with the below command
flux bootstrap gitlab --hostname=$GITLAB_URL --owner=$GITLAB_GROUP --repository=$GITLAB_REPO --branch=flux_test --path=manifests/staging --registry=azurecr.io/$ACR_NAME/fluxcd --image-pull-secret=acr-auth --interval 10m --token-auth --reconcile
I am getting error , resource already exists. How can I bootstrap with existing repository
The text was updated successfully, but these errors were encountered: