Skip to content

Commit

Permalink
update webhook config
Browse files Browse the repository at this point in the history
Signed-off-by: runzexia <runzexia@yunify.com>
  • Loading branch information
runzexia committed Dec 12, 2019
1 parent 25a1f61 commit df560d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /mutate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2ibuilder
path: /mutate-devops-kubesphere-io-v1alpha1-s2ibuilder
failurePolicy: Fail
name: s2ibuilder.kb.io
rules:
Expand All @@ -37,7 +37,7 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /validate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2ibuilder
path: /validate-devops-kubesphere-io-v1alpha1-s2ibuilder
failurePolicy: Fail
name: vs2ibuilder.kb.io
rules:
Expand Down Expand Up @@ -73,7 +73,7 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /validate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2irun
path: /validate-devops-kubesphere-io-v1alpha1-s2irun
failurePolicy: Fail
name: vs2irun.kb.io
rules:
Expand Down
6 changes: 3 additions & 3 deletions deploy/s2ioperator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ webhooks:
service:
name: webhook-service
namespace: kubesphere-devops-system
path: /mutate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2ibuilder
path: /mutate-devops-kubesphere-io-v1alpha1-s2ibuilder
failurePolicy: Fail
name: s2ibuilder.kb.io
rules:
Expand Down Expand Up @@ -930,7 +930,7 @@ webhooks:
service:
name: webhook-service
namespace: kubesphere-devops-system
path: /validate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2ibuilder
path: /validate-devops-kubesphere-io-v1alpha1-s2ibuilder
failurePolicy: Fail
name: vs2ibuilder.kb.io
rules:
Expand Down Expand Up @@ -966,7 +966,7 @@ webhooks:
service:
name: webhook-service
namespace: kubesphere-devops-system
path: /validate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2irun
path: /validate-devops-kubesphere-io-v1alpha1-s2irun
failurePolicy: Fail
name: vs2irun.kb.io
rules:
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/devops/v1alpha1/s2ibuilder_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (r *S2iBuilder) SetupWebhookWithManager(mgr ctrl.Manager) error {

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

// +kubebuilder:webhook:path=/mutate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2ibuilder,mutating=true,failurePolicy=fail,groups=devops.kubesphere.io,resources=s2ibuilders,verbs=create;update,versions=v1alpha1,name=s2ibuilder.kb.io
// +kubebuilder:webhook:path=/mutate-devops-kubesphere-io-v1alpha1-s2ibuilder,mutating=true,failurePolicy=fail,groups=devops.kubesphere.io,resources=s2ibuilders,verbs=create;update,versions=v1alpha1,name=s2ibuilder.kb.io

var _ webhook.Defaulter = &S2iBuilder{}

Expand All @@ -69,7 +69,7 @@ func (r *S2iBuilder) Default() {
}

// TODO(user): change verbs to "verbs=create;update;delete" if you want to enable deletion validation.
// +kubebuilder:webhook:verbs=create;update,path=/validate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2ibuilder,mutating=false,failurePolicy=fail,groups=devops.kubesphere.io,resources=s2ibuilders,versions=v1alpha1,name=vs2ibuilder.kb.io
// +kubebuilder:webhook:verbs=create;update,path=/validate-devops-kubesphere-io-v1alpha1-s2ibuilder,mutating=false,failurePolicy=fail,groups=devops.kubesphere.io,resources=s2ibuilders,versions=v1alpha1,name=vs2ibuilder.kb.io

var _ webhook.Validator = &S2iBuilder{}

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/devops/v1alpha1/s2irun_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (r *S2iRun) SetupWebhookWithManager(mgr ctrl.Manager) error {
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!

// TODO(user): change verbs to "verbs=create;update;delete" if you want to enable deletion validation.
// +kubebuilder:webhook:verbs=create;update,path=/validate-devops-kubesphere-io-kubesphere-io-v1alpha1-s2irun,mutating=false,failurePolicy=fail,groups=devops.kubesphere.io,resources=s2iruns,versions=v1alpha1,name=vs2irun.kb.io
// +kubebuilder:webhook:verbs=create;update,path=/validate-devops-kubesphere-io-v1alpha1-s2irun,mutating=false,failurePolicy=fail,groups=devops.kubesphere.io,resources=s2iruns,versions=v1alpha1,name=vs2irun.kb.io

var _ webhook.Validator = &S2iRun{}

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df560d2

Please sign in to comment.