Skip to content

Commit ecd1c07

Browse files
committed
don't error if set-resources patch is empty
1 parent 9767125 commit ecd1c07

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/set/set_resources.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ func (o *SetResourcesOptions) Run() error {
267267

268268
//no changes
269269
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
270-
allErrs = append(allErrs, fmt.Errorf("info: %s was not changed\n", name))
271270
continue
272271
}
273272

staging/src/k8s.io/kubectl/pkg/cmd/set/set_subject.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ func (o *SubjectOptions) Run(fn updateSubjects) error {
247247

248248
//no changes
249249
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
250-
allErrs = append(allErrs, fmt.Errorf("info: %s was not changed\n", name))
251250
continue
252251
}
253252

0 commit comments

Comments
 (0)