From 9bf03fe9c2b1de1408fbe0c4c8a45c99c5847336 Mon Sep 17 00:00:00 2001 From: hysyeah Date: Tue, 15 Oct 2024 14:38:45 +0800 Subject: [PATCH] fix: replace image repo when update cwf (#91) --- pkg/webhook/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/setup.go b/pkg/webhook/setup.go index 8e3e808..8f0716e 100644 --- a/pkg/webhook/setup.go +++ b/pkg/webhook/setup.go @@ -521,7 +521,7 @@ func (wh *Webhook) CreateOrUpdateCronWorkflowMutatingWebhook() error { NamespaceSelector: &metav1.LabelSelector{}, Rules: []admissionregv1.RuleWithOperations{ { - Operations: []admissionregv1.OperationType{admissionregv1.Create}, + Operations: []admissionregv1.OperationType{admissionregv1.Create, admissionregv1.Update}, Rule: admissionregv1.Rule{ APIGroups: []string{"*"}, APIVersions: []string{"v1alpha1"},