don't error if set-resources patch is empty

Kubernetes-commit: ecd1c0747272ab908daa64b0f4b2b18a8cb18362
This commit is contained in:
Sally O'Malley 2019-11-20 19:22:18 -05:00 committed by Kubernetes Publisher
parent 21ad77b94e
commit de3d4fcc02
2 changed files with 0 additions and 2 deletions

View File

@ -267,7 +267,6 @@ func (o *SetResourcesOptions) Run() error {
//no changes
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
allErrs = append(allErrs, fmt.Errorf("info: %s was not changed\n", name))
continue
}

View File

@ -247,7 +247,6 @@ func (o *SubjectOptions) Run(fn updateSubjects) error {
//no changes
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
allErrs = append(allErrs, fmt.Errorf("info: %s was not changed\n", name))
continue
}