mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-17 17:25:43 +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:
parent
74edb12bd1
commit
e7f1faea01
5 changed files with 153 additions and 147 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue