Repository navigation
Flux Operator 0.6 - #178
Conversation
Signed-off-by: Kingdon Barrett <[email protected]> add flux-operator chart Signed-off-by: Kingdon Barrett <[email protected]> redefine fluxcd chart source as flux-operator Signed-off-by: Kingdon Barrett <[email protected]> default FluxInstance Signed-off-by: Kingdon Barrett <[email protected]> make flux instance minimal we need to conform to the current version in use, 2.2.x, but otherwise we don't need to specify all of this, and as long as we don't specify any of this, then user can merge their own configs in with kubectl apply I hope the FluxInstance registry is set to default to ghcr, so we don't block anyone from using an enterprise or paid distribution of flux with this config! Signed-off-by: Kingdon Barrett <[email protected]> fix versions map (and tag) Signed-off-by: Kingdon Barrett <[email protected]> The FluxInstance "flux" is invalid: spec.distribution.registry: Required value (drat!) Signed-off-by: Kingdon Barrett <[email protected]> Revert "fix versions map (and tag)" This reverts commit 4989e01. take over all components the chart installs by default all 6 components, so make sure we are taking them all over this way Signed-off-by: Kingdon Barrett <[email protected]> kubectl wait for fluxinstance/flux Signed-off-by: Kingdon Barrett <[email protected]> try a different wait order Signed-off-by: Kingdon Barrett <[email protected]> now I see what this is doing Signed-off-by: Kingdon Barrett <[email protected]> try to understand how to fix this Signed-off-by: Kingdon Barrett <[email protected]> test hostNetwork in chart Signed-off-by: Kingdon Barrett <[email protected]> add hostNetwork: true value Signed-off-by: Kingdon Barrett <[email protected]> test kubeprism with flux-operator Signed-off-by: Kingdon Barrett <[email protected]> is this a good validation IDK Signed-off-by: Kingdon Barrett <[email protected]> better logic order Signed-off-by: Kingdon Barrett <[email protected]> set domain in cluster correctly for flux config Signed-off-by: Kingdon Barrett <[email protected]> set cozy-fluxcd namespace to privileged Signed-off-by: Kingdon Barrett <[email protected]> magical operators Signed-off-by: Kingdon Barrett <[email protected]> test cluster.domain Signed-off-by: Kingdon Barrett <[email protected]> parameterize everything Signed-off-by: Kingdon Barrett <[email protected]> remove unsure statements from installer.sh it's tested now, it works, we know where the failures are (and they aren't a problem for now) Signed-off-by: Kingdon Barrett <[email protected]> FluxInstance CRD Signed-off-by: Kingdon Barrett <[email protected]> Resolve deprecated API references HelmRelease is v2 and HelmRepository is v1 now, as of Flux 2.3 Signed-off-by: Kingdon Barrett <[email protected]> upgrade Flux to match new helmrelease definitions Helm Controller is GA as of Flux 2.3 Signed-off-by: Kingdon Barrett <[email protected]> fluxFaster.yaml - values to speed things up this change was the real motivation for introducing flux-operator +fixup Signed-off-by: Kingdon Barrett <[email protected]> do not set cluster domain by default so users can override it (we should probably provide a way to disable these customizations as well, so they can provide their own without getting clobbered by cozystack-installer) As we know there is no simple way to perform array merges in Helm values Signed-off-by: Kingdon Barrett <[email protected]>
this caused an error Signed-off-by: Kingdon Barrett <[email protected]>
Signed-off-by: Kingdon Barrett <[email protected]>
Signed-off-by: Andrei Kvapil <[email protected]>
Signed-off-by: Kingdon Barrett <[email protected]> Co-authored-by: Andrei Kvapil <[email protected]>
Signed-off-by: Andrei Kvapil <[email protected]>
Update flux plugin for dashboard
Signed-off-by: Kingdon Barrett <[email protected]>
Signed-off-by: Kingdon Barrett <[email protected]>
|
I tested, was able to get kubeapps to boot with the changes you added 👍 I have also now rebased and am in the process of testing again, had some local environment issues to work out with the multi-arch build (fwiw I just had to clean up some broken builders from buildx, and be sure to create and set a default builder... then it worked) Will push over this branch with the rebased commits, so we can review it rebased & with conflicts resolved Before the rebase we are at 6a097bc |
6a097bc to
781c4f6
Compare
|
I would probably merge this change-set instead of the branch that's currently in #170 Still have to give it a quick once-over to be sure I haven't made any rebase errors, I did a |
This came back in a rebase error, but these values have already been merged into `values.yaml` Signed-off-by: Kingdon Barrett <[email protected]>
This is required until controlplaneio-fluxcd/flux-operator#51 can be resolved in a release, if you don't set `networkPolicy` then you'll get a wrong behavior from Flux, which should be deployed with NetworkPolicy resources by default. The `allow-from-kubeapps` policy is so that cozy-dashboard can poll and represent the status of Helm artifacts, it is still needed when this fix is in. Signed-off-by: Kingdon Barrett <[email protected]>
Signed-off-by: Kingdon Barrett <[email protected]>
|
Now I've tested, and I saw the changes you made to patch source controller advertise address and notification controller, that's pretty ingenious, it seems to obviate the importance of the setting for These are the implied defaults, and controlplaneio-fluxcd/flux-operator#52 solves that they are not honored now, in 0.6 operator, so we can remove that setting in our instance template values of I don't want to hold things up clamoring that there still isn't a really good way for users to provide their own custom settings to Flux while we are providing some extensions to the defaults, I think a configmap, but I'm not prepared to solve it now. I think it's OK to move forward with sane defaults. I'm happy with how this is turning out, because Flux won't be the bottleneck installing. It performs much better with the concurrency set to 20 than the default! (4?) I have some mixed feelings about the way that cluster domain is resolved, but it's not a blocker. I've still some local end-to-end testing left to do on my part, but smoke test it works, from my end looks good right now. |
|
End-to-end testing in here is going pretty well (the latest test build right now is I was able to deploy the full stack, and access the dashboard, and upgrade tenant-root, and deploy a virtual cluster. That's as far as I've got time to test today, (and now I am a bit more familiar with the build system I managed to built my own dashboard+kubeapps API to be sure I test a specific version - by hand, in a personal Docker Hub repo - and test those with the changes in this branch, in a personal build of cozystack installer) |
|
Pretty sure that does not help. I have pointed it back at the |
e0b6d4f to
b8e5309
Compare
This PR upgrades to Flux-Operator 0.6 released this morning, also includes: * #170 which is an aggregate PR, so #171 #172 etc. I think this PR now basically subsumes #170 and can replace it. I have at least 80% confidence there are no errors in this PR. It also restores the networkPolicy default and the deleted cozy-dashboard network policy, which we will see fixed (restored to install NetworkPolicy resources by default) in the next `flux-operator` release. Ref: controlplaneio-fluxcd/flux-operator#52 Signed-off-by: Andrei Kvapil <[email protected]>
This PR upgrades to Flux-Operator 0.6 released this morning, also includes: * #170 which is an aggregate PR, so #171 #172 etc. I think this PR now basically subsumes #170 and can replace it. I have at least 80% confidence there are no errors in this PR. It also restores the networkPolicy default and the deleted cozy-dashboard network policy, which we will see fixed (restored to install NetworkPolicy resources by default) in the next `flux-operator` release. Ref: controlplaneio-fluxcd/flux-operator#52 Signed-off-by: Andrei Kvapil <[email protected]>
This PR upgrades to Flux-Operator 0.6 released this morning, also includes: * #170 which is an aggregate PR, so #171 #172 etc. I think this PR now basically subsumes #170 and can replace it. I have at least 80% confidence there are no errors in this PR. It also restores the networkPolicy default and the deleted cozy-dashboard network policy, which we will see fixed (restored to install NetworkPolicy resources by default) in the next `flux-operator` release. Ref: controlplaneio-fluxcd/flux-operator#52 Signed-off-by: Andrei Kvapil <[email protected]>
This PR upgrades to Flux-Operator 0.6 released this morning, also includes:
which is an aggregate PR, so Update flux plugin for dashboard #171 Refactor Flux 2.3 update #172 etc. I think this PR now basically subsumes FluxCD Updates #170 and can replace it.
I have at least 80% confidence there are no errors in this PR. It also restores the networkPolicy default and the deleted cozy-dashboard network policy, which we will see fixed (restored to install NetworkPolicy resources by default) in the next
flux-operatorrelease.Ref: controlplaneio-fluxcd/flux-operator#52
Little more testing on my end and then I will mark it as review-worthy.
(This PR is still a draft)