Add patch remover

This commit is contained in:
Takuro Wada
2019-06-24 21:15:02 +09:00
parent 6ed70add4a
commit 674cd89ac9
4 changed files with 292 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ func NewCmdRemove(
kustomize edit remove resource {filepath} {filepath}
kustomize edit remove resource {pattern}
# Removes one or more patches from the kustomization file
kustomize edit remove patch <filepath>
# Removes one or more commonLabels from the kustomization file
kustomize edit remove label {labelKey1},{labelKey2}
@@ -47,6 +50,7 @@ func NewCmdRemove(
newCmdRemoveResource(fsys),
newCmdRemoveLabel(fsys, ldr.Validator().MakeLabelNameValidator()),
newCmdRemoveAnnotation(fsys, ldr.Validator().MakeAnnotationNameValidator()),
newCmdRemovePatch(fsys),
)
return c
}