Skip to content

Commit ad01c7a

Browse files
wu8685Fei-Guo
authored andcommitted
correct UnitedDeployment webhooks (openkruise#190)
* add apps.statefulset role permission for UnitedDeployment in all-in-one config * correct ud webhook
1 parent 55ff27b commit ad01c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/webhook/default_server/uniteddeployment/mutating/create_update_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ func init() {
3131
Mutating().
3232
Operations(admissionregistrationv1beta1.Create, admissionregistrationv1beta1.Update).
3333
FailurePolicy(admissionregistrationv1beta1.Fail).
34-
ForType(&appsv1alpha1.StatefulSet{})
34+
ForType(&appsv1alpha1.UnitedDeployment{})
3535
}

pkg/webhook/default_server/uniteddeployment/validating/create_update_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
func init() {
26-
builderName := "validating-create-update-unitedDeployment"
26+
builderName := "validating-create-update-uniteddeployment"
2727
Builders[builderName] = builder.
2828
NewWebhookBuilder().
2929
Name(builderName+".kruise.io").

0 commit comments

Comments
 (0)