-
Notifications
You must be signed in to change notification settings - Fork 617
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
The "owner" argument for flux bootstrap gitlab (probably others too) does not make sense if URL includes groups/subgroups #3817
Comments
fully agree. it's really hard to figure out whats going on when the variable names are so blatantly incorrect and the output from the CLI is misleading too. |
I opened an issue in the GitLab issue tracker to get GitLab involved in improving the UX. I recommend to continue the discussion there, and finally create an RFC here. |
@simonfelding @aleksandaratanasov @razvanphp @elehcim We discussed at GitLab the We recommend two GitLab specific flags:
Together with implementing the above changes, we recommend to:
Together with the above we discussed that Please, let me know what you think! |
I think it's a great proposal. Thanks |
It's good but it would be even greater if it supported using a pre-existing repo (all it should do is set up the token).
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Michele Mastropietro ***@***.***>
Sent: Sunday, June 23, 2024 11:45:04 AM
To: fluxcd/flux2 ***@***.***>
Cc: simonfelding ***@***.***>; Mention ***@***.***>
Subject: Re: [fluxcd/flux2] The "owner" argument for flux bootstrap gitlab (probably others too) does not make sense if URL includes groups/subgroups (Issue #3817)
I think it's a great proposal. Thanks
—
Reply to this email directly, view it on GitHub<#3817 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKYOW73VGWDOVGPOMEUUNS3ZI2KKBAVCNFSM6AAAAAAXDVSY5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUHEZDEMRYHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@simonfelding Did you meant that when running from a gitlab project checkout directory, the |
Wow that would be really cool and easy! I actually meant the use case where you have a project repo already and you want Flux to sync with it. The bootstrap command only works with setting up a new project (that doesn't already exist).
If it's not entirely clear, the only way to use it right now is to have it create a new project. I want to use it with a project that already has everything, it just needs the token set up by the bootstrap command. Does that make sense?
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Viktor Nagy ***@***.***>
Sent: Monday, June 24, 2024 9:20:55 PM
To: fluxcd/flux2 ***@***.***>
Cc: simonfelding ***@***.***>; Mention ***@***.***>
Subject: Re: [fluxcd/flux2] The "owner" argument for flux bootstrap gitlab (probably others too) does not make sense if URL includes groups/subgroups (Issue #3817)
It's good but it would be even greater if it supported using a pre-existing repo (all it should do is set up the token).
@simonfelding<https://github.com/simonfelding> Did you meant that when running from a gitlab project checkout directory, the --hostname and --project-path should default to those of the current repo? I like this idea! Thanks!
—
Reply to this email directly, view it on GitHub<#3817 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKYOW75BQGQKAK6P62A2UA3ZJBWRPAVCNFSM6AAAAAAXDVSY5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBXGI2DOMZWGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Never heard this before from GitLab users, Flux bootstrap should detect if a repo exists and uses it. How did you come to this conclusion? |
This is wrong! The |
Oh! My bad then. I had an issue with it but I don't have the time to try to
recreate the issue.
…On Tue, Jun 25, 2024 at 3:20 PM Max Jonas Werner ***@***.***> wrote:
The bootstrap command only works with setting up a new project (that
doesn't already exist).
This is wrong! The bootstrap gitlab command works just fine with a
pre-existing project. I just did exactly that.
—
Reply to this email directly, view it on GitHub
<#3817 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKYOW7ZWADCCBSROOXRF5JLZJFVDLAVCNFSM6AAAAAAXDVSY5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYHE2DSMJTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Deprecates the `owner` and `repository` arguments. Closes: fluxcd#3817 Signed-off-by: Viktor Nagy <[email protected]>
Deprecates the `owner` and `repository` arguments. Closes: fluxcd#3817 Signed-off-by: Viktor Nagy <[email protected]>
The research institute I am working for has its own GitLab instance. My team has its own group and inside we have subgroups and what not. The repository I would like to use has the following URL (placeholders used due to privacy):
As you can see the structure is nested:
institute
- the name of the institutedepartment
- the name of the department with focus on specific research area(s)research-group
- the name of the team with focus on specific research area(s)cloud-computing
- a sub-group of the my team's group I have created (I am the owner) to put everything related to cloud in itadministration
- a sub-group of thecloud-computing
group for admin tasks (e.g. GitOps for managing the infrastructure)k8s-playground
- the actual project that will be used byflux
to sync the Kubernetes (in my case an Ubuntu 22.04 Server withmicrok8s
; for setting upflux
to work withmicrok8s
see here )I am quite new to GitOps and Kubernetes in general but I do believe that
flux
is rather confusing when it comes to anything that is not in the form ofThe URL I have used at the beginning needs to be split into chunks that, given the name of the argument
--owner
, is anything but helpful. It took me half an hour trying to figure out what's going on:Notice the absence of trailing/leading
/
, which is an extra thing the user needs to consider not to mention the absence of.git
suffix. I do realize that internally a lot of concatenation is going on and this is how I managed to figure out what to put where.However in the end
--owner=institute/department/research-group/cloud-computing/administration
is not really the owner but rather a nested structure.I would suggest to rename the owner to something like
url-path
or similar. Best would be remove that completely and just go with the full URL for the--repository
argument since most people are familiar with that anyway. I would further suggest to remove the requirement to discard the.git
suffix and remove--hostname
:In the end hostname can be extracted inside
flux
itself (plenty of regexes out there for doing that).The text was updated successfully, but these errors were encountered: