-
Notifications
You must be signed in to change notification settings - Fork 625
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 gitlab ignores --owner when creating the repo #3867
Comments
Can you please using |
I forgot to update this. I got it working by using Not sure what to make of this, but at least I'm not blocked. |
@abderrahim we also have |
@abderrahim The
However, I think the UX in the CLI should be improved to either return a better error or use the personal repository url when a group is specified instead of a username (and maybe the docs should be updated too, to tell the user to look further down the page for the cli command if the repository is under a group) |
Describe the bug
Following the installation guide for gitlab to create my first flux repo, the repo is created in the wrong location (under my username) rather than the group specified with
--owner
.Steps to reproduce
I ran the following command:
flux bootstrap gitlab --hostname gitlab.codethink.co.uk --owner software-factory/playground/abderrahim --repository flux-test1 --token-auth --personal
I got the following output
Expected behavior
It should work, creating the repository and setting it up.
Instead, the repository was created under my username (rather than the group I specified), and subsequently cloning it failed.
This might be due to the fact I was using a personal token rather than a project/group token, but it should either figure it out or explicitly throw an error.
Screenshots and recordings
No response
OS / Distro
Debian testing
Flux version
2.0.0-rc.1
Flux check
► checking prerequisites
✔ Kubernetes 1.26.3 >=1.20.6-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
Git provider
gitlab entreprise
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: