Align skipping of resources in flux diff to kustomize-controller

Signed-off-by: Yvan <y.guidoin@meteocontrol.com>
pull/5176/head
Yvan 3 months ago
parent 6f815a36fe
commit 960f72fe6a
No known key found for this signature in database
GPG Key ID: D497F3F4423545A6

@ -100,6 +100,10 @@ func (b *Builder) diff() (string, bool, error) {
diffOptions := ssa.DiffOptions{ diffOptions := ssa.DiffOptions{
Exclusions: map[string]string{ Exclusions: map[string]string{
"kustomize.toolkit.fluxcd.io/reconcile": "disabled", "kustomize.toolkit.fluxcd.io/reconcile": "disabled",
"kustomize.toolkit.fluxcd.io/ssa": "ignore",
},
IfNotPresentSelector: map[string]string{
"kustomize.toolkit.fluxcd.io/ssa": "ifnotpresent",
}, },
} }
change, liveObject, mergedObject, err := resourceManager.Diff(ctx, obj, diffOptions) change, liveObject, mergedObject, err := resourceManager.Diff(ctx, obj, diffOptions)

Loading…
Cancel
Save