From c661c336715fd985332d0c87afc045878d2544c5 Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Thu, 18 Apr 2024 09:56:56 -0700 Subject: [PATCH] Use existing versions in admission webhooks Signed-off-by: Antonin Bas --- .../charts/antrea/templates/webhooks/mutating/crdmutator.yaml | 4 ++-- .../antrea/templates/webhooks/validating/crdvalidator.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/charts/antrea/templates/webhooks/mutating/crdmutator.yaml b/build/charts/antrea/templates/webhooks/mutating/crdmutator.yaml index 98dc299a184..ec56e3b224f 100644 --- a/build/charts/antrea/templates/webhooks/mutating/crdmutator.yaml +++ b/build/charts/antrea/templates/webhooks/mutating/crdmutator.yaml @@ -15,7 +15,7 @@ webhooks: rules: - operations: ["CREATE", "UPDATE"] apiGroups: ["crd.antrea.io"] - apiVersions: ["v1alpha1"] + apiVersions: ["v1beta1"] resources: ["clusternetworkpolicies"] scope: "Cluster" admissionReviewVersions: ["v1", "v1beta1"] @@ -30,7 +30,7 @@ webhooks: rules: - operations: ["CREATE", "UPDATE"] apiGroups: ["crd.antrea.io"] - apiVersions: ["v1alpha1"] + apiVersions: ["v1beta1"] resources: ["networkpolicies"] scope: "Namespaced" admissionReviewVersions: ["v1", "v1beta1"] diff --git a/build/charts/antrea/templates/webhooks/validating/crdvalidator.yaml b/build/charts/antrea/templates/webhooks/validating/crdvalidator.yaml index 9f98ff1e1cb..e950602bd6b 100644 --- a/build/charts/antrea/templates/webhooks/validating/crdvalidator.yaml +++ b/build/charts/antrea/templates/webhooks/validating/crdvalidator.yaml @@ -178,7 +178,7 @@ webhooks: rules: - operations: ["CREATE", "UPDATE"] apiGroups: ["crd.antrea.io"] - apiVersions: ["v1alpha1"] + apiVersions: ["v1beta1"] resources: ["traceflows"] scope: "Cluster" admissionReviewVersions: ["v1", "v1beta1"]