UPSTREAM: 66725: update exit code to 0 if patch not needed
@@ -245,14 +245,7 @@ func (o *PatchOptions) RunPatch() error {
if err != nil {
return err
}
- printer.PrintObj(info.Object, o.Out)
-
- // if object was not successfully patched, exit with error code 1
- if !didPatch {
- return cmdutil.ErrExit
- }
-
- return nil
+ return printer.PrintObj(info.Object, o.Out)
}
count++
