From 9645f44cbfae55a25bfa7dcd85a19076f9cb407a Mon Sep 17 00:00:00 2001 From: Anish Joshi Date: Wed, 24 Jun 2020 23:23:54 +0200 Subject: [PATCH] Update Webhook Api to v1 Rename 500-webhook.yaml to webhook.yaml Revert "Rename 500-webhook.yaml to webhook.yaml" This reverts commit edc82308ef9551660809e22fb6da6f1472d35bd6. --- config/core/webhooks/config-validation.yaml | 5 ++--- config/core/webhooks/defaulting.yaml | 5 ++--- config/core/webhooks/resource-validation.yaml | 5 ++--- config/core/webhooks/sinkbindings.yaml | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/config/core/webhooks/config-validation.yaml b/config/core/webhooks/config-validation.yaml index 0e473b45575..3b55b04a9a3 100644 --- a/config/core/webhooks/config-validation.yaml +++ b/config/core/webhooks/config-validation.yaml @@ -12,15 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: admissionregistration.k8s.io/v1beta1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: config.webhook.eventing.knative.dev labels: eventing.knative.dev/release: devel webhooks: -- admissionReviewVersions: - - v1beta1 +- admissionReviewVersions: ["v1", "v1beta1"] clientConfig: service: name: eventing-webhook diff --git a/config/core/webhooks/defaulting.yaml b/config/core/webhooks/defaulting.yaml index 85c1bc2a375..760a218c2f4 100644 --- a/config/core/webhooks/defaulting.yaml +++ b/config/core/webhooks/defaulting.yaml @@ -12,15 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: admissionregistration.k8s.io/v1beta1 +apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: name: webhook.eventing.knative.dev labels: eventing.knative.dev/release: devel webhooks: -- admissionReviewVersions: - - v1beta1 +- admissionReviewVersions: ["v1", "v1beta1"] clientConfig: service: name: eventing-webhook diff --git a/config/core/webhooks/resource-validation.yaml b/config/core/webhooks/resource-validation.yaml index 39ba0c573ac..b7bd1b00faf 100644 --- a/config/core/webhooks/resource-validation.yaml +++ b/config/core/webhooks/resource-validation.yaml @@ -12,15 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: admissionregistration.k8s.io/v1beta1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: validation.webhook.eventing.knative.dev labels: eventing.knative.dev/release: devel webhooks: -- admissionReviewVersions: - - v1beta1 +- admissionReviewVersions: ["v1", "v1beta1"] clientConfig: service: name: eventing-webhook diff --git a/config/core/webhooks/sinkbindings.yaml b/config/core/webhooks/sinkbindings.yaml index ee024e0fa61..a759e9723cc 100644 --- a/config/core/webhooks/sinkbindings.yaml +++ b/config/core/webhooks/sinkbindings.yaml @@ -12,15 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: admissionregistration.k8s.io/v1beta1 +apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: name: sinkbindings.webhook.sources.knative.dev labels: eventing.knative.dev/release: devel webhooks: -- admissionReviewVersions: - - v1beta1 +- admissionReviewVersions: ["v1", "v1beta1"] clientConfig: service: name: eventing-webhook