mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 16:57:29 +00:00
Align skipping of resources in flux diff to kustomize-controller
Signed-off-by: Yvan <y.guidoin@meteocontrol.com>
This commit is contained in:
parent
6f815a36fe
commit
960f72fe6a
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue