@@ -145,7 +145,7 @@ public <R extends HasMetadata> R serverSideApply(
145145 * @return updated resource
146146 * @param <R> resource type
147147 */
148- public <R extends HasMetadata > R serverSideApplyStatus (R resource ) {
148+ public <R extends HasMetadata > R serverSideApplyStatus (R resource , Options options ) {
149149 return resourcePatch (
150150 resource ,
151151 r ->
@@ -158,7 +158,12 @@ public <R extends HasMetadata> R serverSideApplyStatus(R resource) {
158158 .withForce (true )
159159 .withFieldManager (context .getControllerConfiguration ().fieldManager ())
160160 .withPatchType (PatchType .SERVER_SIDE_APPLY )
161- .build ()));
161+ .build ()),
162+ options );
163+ }
164+
165+ public <R extends HasMetadata > R serverSideApplyStatus (R resource ) {
166+ return serverSideApplyStatus (resource , null );
162167 }
163168
164169 /**
@@ -246,7 +251,7 @@ public <R extends HasMetadata> R update(R resource, Options options) {
246251
247252 public <R extends HasMetadata > R update (
248253 R resource , InformerEventSource <R , P > informerEventSource ) {
249- return update (resource , informerEventSource , null );
254+ return update (resource , informerEventSource , new Options ( true ) );
250255 }
251256
252257 /**
@@ -334,7 +339,8 @@ public <R extends HasMetadata> R create(
334339 * @param <R> resource type
335340 */
336341 public <R extends HasMetadata > R updateStatus (R resource ) {
337- return resourcePatch (resource , r -> context .getClient ().resource (r ).updateStatus ());
342+ return resourcePatch (
343+ resource , r -> context .getClient ().resource (r ).updateStatus (), new Options (true ));
338344 }
339345
340346 /**
@@ -397,7 +403,13 @@ public P updatePrimaryStatus(P resource) {
397403 * @param <R> resource type
398404 */
399405 public <R extends HasMetadata > R jsonPatch (R resource , UnaryOperator <R > unaryOperator ) {
400- return resourcePatch (resource , r -> context .getClient ().resource (r ).edit (unaryOperator ));
406+ return jsonPatch (resource , unaryOperator , null );
407+ }
408+
409+ public <R extends HasMetadata > R jsonPatch (
410+ R resource , UnaryOperator <R > unaryOperator , Options options ) {
411+ return resourcePatch (
412+ resource , r -> context .getClient ().resource (r ).edit (unaryOperator ), options );
401413 }
402414
403415 /**
@@ -417,8 +429,14 @@ public <R extends HasMetadata> R jsonPatch(R resource, UnaryOperator<R> unaryOpe
417429 * @return updated resource
418430 * @param <R> resource type
419431 */
432+ public <R extends HasMetadata > R jsonPatchStatus (
433+ R resource , UnaryOperator <R > unaryOperator , Options options ) {
434+ return resourcePatch (
435+ resource , r -> context .getClient ().resource (r ).editStatus (unaryOperator ), options );
436+ }
437+
420438 public <R extends HasMetadata > R jsonPatchStatus (R resource , UnaryOperator <R > unaryOperator ) {
421- return resourcePatch (resource , r -> context . getClient (). resource ( r ). editStatus ( unaryOperator ) );
439+ return jsonPatchStatus (resource , unaryOperator , null );
422440 }
423441
424442 /**
@@ -482,7 +500,11 @@ public P jsonPatchPrimaryStatus(P resource, UnaryOperator<P> unaryOperator) {
482500 * @param <R> resource type
483501 */
484502 public <R extends HasMetadata > R jsonMergePatch (R resource ) {
485- return resourcePatch (resource , r -> context .getClient ().resource (r ).patch ());
503+ return jsonMergePatch (resource , null );
504+ }
505+
506+ public <R extends HasMetadata > R jsonMergePatch (R resource , Options options ) {
507+ return resourcePatch (resource , r -> context .getClient ().resource (r ).patch (), options );
486508 }
487509
488510 /**
@@ -501,7 +523,11 @@ public <R extends HasMetadata> R jsonMergePatch(R resource) {
501523 * @param <R> resource type
502524 */
503525 public <R extends HasMetadata > R jsonMergePatchStatus (R resource ) {
504- return resourcePatch (resource , r -> context .getClient ().resource (r ).patchStatus ());
526+ return jsonMergePatchStatus (resource , null );
527+ }
528+
529+ public <R extends HasMetadata > R jsonMergePatchStatus (R resource , Options options ) {
530+ return resourcePatch (resource , r -> context .getClient ().resource (r ).patchStatus (), options );
505531 }
506532
507533 /**
0 commit comments