mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-25 00:51:48 +00:00
Merge pull request #5176 from YvanGuidoin/diff-dry-run-skipping
fix: align `flux diff` skipping with kustomize-controller
This commit is contained in:
commit
dcc4251a2a
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue