Skip to content

Commit 9f5af4f

Browse files
authored
chore: Cleanup error logging when can't delete webhook (kptdev#329)
Signed-off-by: liamfallon <liam.fallon@est.tech>
1 parent 9b58508 commit 9f5af4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/apiserver/webhooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func createValidatingWebhook(ctx context.Context, cfg *WebhookConfig, caCert []b
331331
}
332332

333333
if err := kubeClient.AdmissionregistrationV1().ValidatingWebhookConfigurations().Delete(ctx, validationCfgName, metav1.DeleteOptions{}); err != nil {
334-
klog.Error("failed to delete existing webhook: %w", err)
334+
klog.Warningf("failed to delete existing webhook: %v", err)
335335
}
336336

337337
if _, err := kubeClient.AdmissionregistrationV1().ValidatingWebhookConfigurations().Create(ctx, validateConfig,

0 commit comments

Comments
 (0)