From df560d262bf654541e6a50a95595079b648805c1 Mon Sep 17 00:00:00 2001 From: runzexia Date: Thu, 12 Dec 2019 16:01:01 +0800 Subject: [PATCH] update webhook config Signed-off-by: runzexia --- config/webhook/manifests.yaml | 6 +++--- deploy/s2ioperator.yaml | 6 +++--- pkg/apis/devops/v1alpha1/s2ibuilder_webhook.go | 4 ++-- pkg/apis/devops/v1alpha1/s2irun_webhook.go | 2 +- pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index 0c37ca3a..297988e1 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -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: @@ -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: @@ -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: diff --git a/deploy/s2ioperator.yaml b/deploy/s2ioperator.yaml index bda7f643..13e48f11 100644 --- a/deploy/s2ioperator.yaml +++ b/deploy/s2ioperator.yaml @@ -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: @@ -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: @@ -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: diff --git a/pkg/apis/devops/v1alpha1/s2ibuilder_webhook.go b/pkg/apis/devops/v1alpha1/s2ibuilder_webhook.go index efc2132e..3f1bd700 100644 --- a/pkg/apis/devops/v1alpha1/s2ibuilder_webhook.go +++ b/pkg/apis/devops/v1alpha1/s2ibuilder_webhook.go @@ -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{} @@ -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{} diff --git a/pkg/apis/devops/v1alpha1/s2irun_webhook.go b/pkg/apis/devops/v1alpha1/s2irun_webhook.go index d92b4266..20f71784 100644 --- a/pkg/apis/devops/v1alpha1/s2irun_webhook.go +++ b/pkg/apis/devops/v1alpha1/s2irun_webhook.go @@ -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{} diff --git a/pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go index ba6a5640..86fcbe5e 100644 --- a/pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/devops/v1alpha1/zz_generated.deepcopy.go @@ -22,7 +22,7 @@ package v1alpha1 import ( "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.