Skip to content

Commit

Permalink
correct UnitedDeployment webhooks (#190)
Browse files Browse the repository at this point in the history
* add apps.statefulset role permission for UnitedDeployment in all-in-one config

* correct ud webhook
  • Loading branch information
wu8685 authored and Fei-Guo committed Dec 16, 2019
1 parent 55ff27b commit ad01c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ func init() {
Mutating().
Operations(admissionregistrationv1beta1.Create, admissionregistrationv1beta1.Update).
FailurePolicy(admissionregistrationv1beta1.Fail).
ForType(&appsv1alpha1.StatefulSet{})
ForType(&appsv1alpha1.UnitedDeployment{})
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

func init() {
builderName := "validating-create-update-unitedDeployment"
builderName := "validating-create-update-uniteddeployment"
Builders[builderName] = builder.
NewWebhookBuilder().
Name(builderName+".kruise.io").
Expand Down

0 comments on commit ad01c7a

Please sign in to comment.