1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Handle force: enabled annotation in flux diff ks command

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2025-09-22 13:11:43 +03:00
parent 74edb12bd1
commit e7f1faea01
5 changed files with 153 additions and 147 deletions

View File

@@ -106,6 +106,9 @@ func (b *Builder) diff() (string, bool, error) {
IfNotPresentSelector: map[string]string{
"kustomize.toolkit.fluxcd.io/ssa": "ifnotpresent",
},
ForceSelector: map[string]string{
"kustomize.toolkit.fluxcd.io/force": "enabled",
},
}
change, liveObject, mergedObject, err := resourceManager.Diff(ctx, obj, diffOptions)
if err != nil {