-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 v2 enable repo integration #2964
Comments
Since none of the new flags line up with the old So in lieu of a real decision I am calling this For a first pass I am going to implement a bare set of configuration for running So initial UX would be: Command (if we want flags at all 🤷♀️ giving that we are moving towards a config only world): eksctl enable gotk \
--vcs <github/gitlab> \ # required - I know those things are not VCSs but I have not come up with a snappier name yet
--owner <user/org name> \ # required
--repo <name of repository, not url> \ # required
--branch <branch name> \
--namespace <namespace> \
--path <dir in repo to store flux stuff> Config: git:
gotk:
vcs: github
owner: gitops
repo: flux-repo
namespace: flux-system
branch: main
path: "flux/" (So that ( There are of course lots more options which can go into configuring Flux, but I think these are fine to start with and we can create new issues for exposing new functionality. And as I said in the description above, we may not even want to expose all of them. If I try to do everything at once I will invariably miss something, and y'all will have to slog through a mass PR. Implementation-wise, I am going to simply shell out to Flux. |
Okay so there is a way where we can have Pros:
Cons:
🤔 is this all just a bit confusing? Like if a user was going from a v1 config: git:
repo:
url: "[email protected]:myorg/cluster-21.git"
branch: master
fluxPath: "flux/"
user: "gitops"
email: "[email protected]"
namespace: flux To a v2 config, it is not a simple matter of adding the v2 switch, other keys have to change: git:
repo:
v2: true
vcs: github
repo: cluster-21
branch: main
path: "flux/"
owner: gitops
namespace: flux Maybe that is fine...? Or is it actually terrible and I'm just tired? |
Why do you want this feature?
Flux v2 (Gitops Toolkit) is 🔥 🔥 and very close to replacing v1.
What feature/behaviour/change do you want?
There should be way to opt-in to bootstrap a v2 repo when I run
eksctl enable repo
.I am not sure that we will be able to use the existing flags/config opts which is a bit of a pain: it would be cool to simply give a
--use-v2
or whatever and have everything else be the same, but the existing flags don't really line up with theflux
cli. This is not a problem for people who only everbootstrap
througheksctl
but weird for people who are used to theflux
api.I don't really want to have to go back and have those flags make sense after we remove the v1 integration as that would be super breaking.
Maybe we just have a whole new command and save ourselves a headache? Like
eksctl enable gotk
?Honestly, Flux v2 is 1000x simpler to set up than v1 that having an
eksctl
command is somewhat redundant. Theenable repo
command is useful because Flux v1 needs a lot of fiddling to get going. v2 is like 1 step (3 if you want to do checks before and after). Being able to configure as part of a general cluster create + file is the main use foreksctl
+ v2.Things to consider:
eksctl
. We don't want to end up basically exposing all the flux flags oneksctl
and pass them through. That would be very irritating to keep in step. I think in the current integration we have the option to pass in a list of extra args?I will start coming up with a UX design for this soon and post here when I have ideas. If anyone else would like to pitch in to how this should look, go nuts!
The text was updated successfully, but these errors were encountered: