-
Notifications
You must be signed in to change notification settings - Fork 630
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 diff ignores kustomize.toolkit.fluxcd.io/ssa annotations #5163
Comments
Looking at the code to see if I could solve it myself, this might come from https://github.com/fluxcd/flux2/blob/main/internal/build/diff.go#L100 which skips objects flagged with For
Edit: think I found out to do it, but will require a change also on |
With fluxcd/pkg#862 merged, waiting for new version of Line 100 in e09ba7a
diffOptions := ssa.DiffOptions{
Exclusions: map[string]string{
"kustomize.toolkit.fluxcd.io/reconcile": "disabled",
"kustomize.toolkit.fluxcd.io/ssa": "ignore",
},
IfNotPresentSelector: map[string]string{
"kustomize.toolkit.fluxcd.io/ssa": "ifnotpresent",
},
} to align to kustomize-controller behavior |
Just got merged here #5175 |
Describe the bug
We are using MetalLB and have added some annotations to BGPPeer CRD to avoid this issue of FluxCD overriding fields all the time (this is not Flux fault but this bug itself seems unrelated)
CRD with annotations:
Running
kustomize-controller
behaves properly and ignores the field, avoiding noise on apply:Steps to reproduce
Deploying MetalLB with Flux:
Expected behavior
flux diff
should skip resources withkustomize.toolkit.fluxcd.io/ssa
configuredScreenshots and recordings
No response
OS / Distro
Ubuntu 24.04
Flux version
v2.4.0
Flux check
N/A
Git provider
GitLab
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: