@@ -61,7 +61,6 @@ public ResourceOperations(Context<P> context) {
6161 */
6262 public <R extends HasMetadata > R serverSideApply (R resource ) {
6363 return resourcePatch (
64- context ,
6564 resource ,
6665 r ->
6766 context
@@ -92,7 +91,6 @@ public <R extends HasMetadata> R serverSideApply(R resource) {
9291 */
9392 public <R extends HasMetadata > R serverSideApplyStatus (R resource ) {
9493 return resourcePatch (
95- context ,
9694 resource ,
9795 r ->
9896 context
@@ -184,7 +182,7 @@ public <P extends HasMetadata> P serverSideApplyPrimaryStatus(P resource) {
184182 * @param <R> resource type
185183 */
186184 public <R extends HasMetadata > R update (R resource ) {
187- return resourcePatch (context , resource , r -> context .getClient ().resource (r ).update ());
185+ return resourcePatch (resource , r -> context .getClient ().resource (r ).update ());
188186 }
189187
190188 /**
@@ -203,7 +201,7 @@ public <R extends HasMetadata> R update(R resource) {
203201 * @param <R> resource type
204202 */
205203 public <R extends HasMetadata > R updateStatus (R resource ) {
206- return resourcePatch (context , resource , r -> context .getClient ().resource (r ).updateStatus ());
204+ return resourcePatch (resource , r -> context .getClient ().resource (r ).updateStatus ());
207205 }
208206
209207 /**
@@ -268,8 +266,7 @@ public <R extends HasMetadata> R updatePrimaryStatus(R resource) {
268266 * @param <R> resource type
269267 */
270268 public <R extends HasMetadata > R jsonPatch (R resource , UnaryOperator <R > unaryOperator ) {
271- return resourcePatch (
272- context , resource , r -> context .getClient ().resource (r ).edit (unaryOperator ));
269+ return resourcePatch (resource , r -> context .getClient ().resource (r ).edit (unaryOperator ));
273270 }
274271
275272 /**
@@ -290,8 +287,7 @@ public <R extends HasMetadata> R jsonPatch(R resource, UnaryOperator<R> unaryOpe
290287 * @param <R> resource type
291288 */
292289 public <R extends HasMetadata > R jsonPatchStatus (R resource , UnaryOperator <R > unaryOperator ) {
293- return resourcePatch (
294- context , resource , r -> context .getClient ().resource (r ).editStatus (unaryOperator ));
290+ return resourcePatch (resource , r -> context .getClient ().resource (r ).editStatus (unaryOperator ));
295291 }
296292
297293 /**
@@ -358,7 +354,7 @@ public <R extends HasMetadata> R jsonPatchPrimaryStatus(
358354 * @param <R> resource type
359355 */
360356 public <R extends HasMetadata > R jsonMergePatch (R resource ) {
361- return resourcePatch (context , resource , r -> context .getClient ().resource (r ).patch ());
357+ return resourcePatch (resource , r -> context .getClient ().resource (r ).patch ());
362358 }
363359
364360 /**
@@ -377,7 +373,7 @@ public <R extends HasMetadata> R jsonMergePatch(R resource) {
377373 * @param <R> resource type
378374 */
379375 public <R extends HasMetadata > R jsonMergePatchStatus (R resource ) {
380- return resourcePatch (context , resource , r -> context .getClient ().resource (r ).patchStatus ());
376+ return resourcePatch (resource , r -> context .getClient ().resource (r ).patchStatus ());
381377 }
382378
383379 /**
@@ -431,15 +427,13 @@ public <R extends HasMetadata> R jsonMergePatchPrimaryStatus(R resource) {
431427 * source for the resource type and delegates to {@link #resourcePatch(HasMetadata, UnaryOperator,
432428 * ManagedInformerEventSource)}.
433429 *
434- * @param context of reconciler
435430 * @param resource resource to patch
436431 * @param updateOperation operation to perform (update, patch, edit, etc.)
437432 * @return updated resource
438433 * @param <R> resource type
439434 * @throws IllegalStateException if no event source or multiple event sources are found
440435 */
441- public <R extends HasMetadata > R resourcePatch (
442- Context <?> context , R resource , UnaryOperator <R > updateOperation ) {
436+ public <R extends HasMetadata > R resourcePatch (R resource , UnaryOperator <R > updateOperation ) {
443437
444438 var esList = context .eventSourceRetriever ().getEventSourcesFor (resource .getClass ());
445439 if (esList .isEmpty ()) {
0 commit comments