Skip to content

Commit

Permalink
Align skipping of resources in flux diff to kustomize-controller
Browse files Browse the repository at this point in the history
Signed-off-by: Yvan <y.guidoin@meteocontrol.com>
  • Loading branch information
YvanGuidoin committed Feb 6, 2025
1 parent 6f815a3 commit 960f72f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/build/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func (b *Builder) diff() (string, bool, error) {
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",
},
}
change, liveObject, mergedObject, err := resourceManager.Diff(ctx, obj, diffOptions)
Expand Down

0 comments on commit 960f72f

Please sign in to comment.