You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we rename objects, they will appear as
add and remove actions, which makes it difficult
to assess the semantic delta, which may only be
a simple renaming.
The current implementation creates a diff
between every added & removeed item of the same kind,
which means at worst O(m*n) runtime.
So it should only be enabled if such changes are rare
f.BoolP("suppress-secrets", "q", false, "suppress secrets in the output")
10
11
f.BoolVar(&o.ShowSecrets, "show-secrets", false, "do not redact secret values in the output")
11
12
f.StringArrayVar(&o.SuppressedKinds, "suppress", []string{}, "allows suppression of the values listed in the diff output")
12
13
f.IntVarP(&o.OutputContext, "context", "C", -1, "output NUM lines of context around changes")
13
14
f.StringVar(&o.OutputFormat, "output", "diff", "Possible values: diff, simple, template. When set to \"template\", use the env var HELM_DIFF_TPL to specify the template.")
14
15
f.BoolVar(&o.StripTrailingCR, "strip-trailing-cr", false, "strip trailing carriage return on input")
16
+
f.Float32VarP(&o.FindRenames, "find-renames", "D", 0, "Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched")
15
17
}
16
18
19
+
// ProcessDiffOptions processes the set flags and handles possible interactions between them
t.Error("Unexpected return value from Manifests: Expected the return value to be `false` to indicate that it has NOT seen any change(s), but was `true`")
t.Error("Unexpected return value from Manifests: Expected the return value to be `false` to indicate that it has NOT seen any change(s), but was `true`")
246
400
}
@@ -250,7 +404,7 @@ Plan: 0 to add, 1 to change, 0 to destroy.
t.Error("Unexpected return value from Manifests: Expected the return value to be `false` to indicate that it has NOT seen any change(s), but was `true`")
@@ -298,7 +452,7 @@ Plan: 0 to add, 1 to change, 0 to destroy.
t.Error("Unexpected return value from Manifests: Expected the return value to be `false` to indicate that it has NOT seen any change(s), but was `true`")
0 commit comments