@@ -259,7 +259,8 @@ protected Result onFailureNoRetry(Packet packet,
259
259
KubernetesApiResponse <V1ValidatingWebhookConfiguration > callResponse ) {
260
260
LOGGER .info (MessageKeys .READ_VALIDATING_WEBHOOK_CONFIGURATION_FAILED ,
261
261
VALIDATING_WEBHOOK_NAME , callResponse .getStatus ());
262
- return super .onFailureNoRetry (packet , callResponse );
262
+ return isNotAuthorizedOrForbidden (callResponse )
263
+ ? doNext (packet ) : super .onFailureNoRetry (packet , callResponse );
263
264
}
264
265
}
265
266
@@ -279,7 +280,8 @@ protected Result onFailureNoRetry(Packet packet,
279
280
KubernetesApiResponse <V1ValidatingWebhookConfiguration > callResponse ) {
280
281
LOGGER .info (MessageKeys .CREATE_VALIDATING_WEBHOOK_CONFIGURATION_FAILED ,
281
282
VALIDATING_WEBHOOK_NAME , callResponse .getStatus ());
282
- return super .onFailureNoRetry (packet , callResponse );
283
+ return isNotAuthorizedOrForbidden (callResponse )
284
+ ? doNext (packet ) : super .onFailureNoRetry (packet , callResponse );
283
285
}
284
286
}
285
287
@@ -312,7 +314,8 @@ protected Result onFailureNoRetry(Packet packet,
312
314
KubernetesApiResponse <V1ValidatingWebhookConfiguration > callResponse ) {
313
315
LOGGER .info (MessageKeys .REPLACE_VALIDATING_WEBHOOK_CONFIGURATION_FAILED ,
314
316
VALIDATING_WEBHOOK_NAME , callResponse .getStatus ());
315
- return super .onFailureNoRetry (packet , callResponse );
317
+ return isNotAuthorizedOrForbidden (callResponse )
318
+ ? doNext (packet ) : super .onFailureNoRetry (packet , callResponse );
316
319
}
317
320
}
318
321
0 commit comments