Skip to content

Commit

Permalink
Merge pull request #5176 from YvanGuidoin/diff-dry-run-skipping
Browse files Browse the repository at this point in the history
fix: align `flux diff` skipping with kustomize-controller
  • Loading branch information
stefanprodan authored Feb 9, 2025
2 parents 6f815a3 + 960f72f commit dcc4251
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 dcc4251

Please sign in to comment.