mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #85490 from sallyom/set-resources-no-error-no-change
don't error if set-resources patch is empty
This commit is contained in:
commit
7c87b5fb55
@ -267,7 +267,6 @@ func (o *SetResourcesOptions) Run() error {
|
|||||||
|
|
||||||
//no changes
|
//no changes
|
||||||
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
|
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
|
||||||
allErrs = append(allErrs, fmt.Errorf("info: %s was not changed\n", name))
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,7 +247,6 @@ func (o *SubjectOptions) Run(fn updateSubjects) error {
|
|||||||
|
|
||||||
//no changes
|
//no changes
|
||||||
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
|
if string(patch.Patch) == "{}" || len(patch.Patch) == 0 {
|
||||||
allErrs = append(allErrs, fmt.Errorf("info: %s was not changed\n", name))
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user