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
f.StringArrayVar(&diff.postRendererArgs, "post-renderer-args", []string{}, "an argument to the post-renderer (can specify multiple)")
249
254
f.BoolVar(&diff.insecureSkipTLSVerify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart download")
250
255
f.BoolVar(&diff.normalizeManifests, "normalize-manifests", false, "normalize manifests before running diff to exclude style differences from the output")
256
+
f.BoolVar(&diff.takeOwnership, "take-ownership", false, "if set, upgrade will ignore the check for helm annotations and take ownership of the existing resources")
Copy file name to clipboardExpand all lines: diff/diff_test.go
+84-2Lines changed: 84 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -492,7 +492,7 @@ annotations:
492
492
}
493
493
494
494
require.Equal(t, `default, nginx, Deployment (apps) to be changed.
495
-
Plan: 0 to add, 1 to change, 0 to destroy.
495
+
Plan: 0 to add, 1 to change, 0 to destroy, 0 to change ownership.
496
496
`, buf1.String())
497
497
})
498
498
@@ -503,7 +503,7 @@ Plan: 0 to add, 1 to change, 0 to destroy.
503
503
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`")
504
504
}
505
505
506
-
require.Equal(t, "Plan: 0 to add, 0 to change, 0 to destroy.\n", buf2.String())
506
+
require.Equal(t, "Plan: 0 to add, 0 to change, 0 to destroy, 0 to change ownership.\n", buf2.String())
@@ -176,7 +179,7 @@ func printSimpleReport(r *Report, to io.Writer) {
176
179
)
177
180
summary[entry.changeType]++
178
181
}
179
-
_, _=fmt.Fprintf(to, "Plan: %d to add, %d to change, %d to destroy.\n", summary["ADD"], summary["MODIFY"], summary["REMOVE"])
182
+
_, _=fmt.Fprintf(to, "Plan: %d to add, %d to change, %d to destroy, %d to change ownership.\n", summary["ADD"], summary["MODIFY"], summary["REMOVE"], summary["OWNERSHIP"])
0 commit comments