Skip to content

Commit

Permalink
Merge pull request #85490 from sallyom/set-resources-no-error-no-change
Browse files Browse the repository at this point in the history
don't error if set-resources patch is empty
  • Loading branch information
k8s-ci-robot committed Nov 27, 2019
2 parents be65a9d + ecd1c07 commit 7c87b5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion staging/src/k8s.io/kubectl/pkg/cmd/set/set_resources.go
Expand Up @@ -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
}

Expand Down
1 change: 0 additions & 1 deletion staging/src/k8s.io/kubectl/pkg/cmd/set/set_subject.go
Expand Up @@ -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
}

Expand Down

0 comments on commit 7c87b5f

Please sign in to comment.