add edit-fix for patchesStrategicMerge to patches

This commit is contained in:
yugo kobayashi
2022-07-29 17:34:38 +00:00
parent 1b0fe2a078
commit 64f42ea45f
3 changed files with 110 additions and 0 deletions

View File

@@ -68,12 +68,14 @@ func RunFix(fSys filesys.FileSystem, w io.Writer) error {
fmt.Fprintln(w, `
Fixed fields:
patchesJson6902 -> patches
patchesStrategicMerge -> patches
commonLabels -> labels
vars -> replacements`)
} else {
fmt.Fprintln(w, `
Fixed fields:
patchesJson6902 -> patches
patchesStrategicMerge -> patches
commonLabels -> labels
To convert vars -> replacements, run the command `+"`kustomize edit fix --vars`"+`