From 1cbcfcc116fd99e9ae42abdc05172c88287987a7 Mon Sep 17 00:00:00 2001 From: Ekaterina Kazakova Date: Thu, 12 Sep 2024 15:38:50 +0400 Subject: [PATCH] Remove unused webhook configurations for templates We don't validate or mutate provider and service Templates yet. So, no need to intercept this requests. Cluster Templates validation remains since the validation will be added in near future in the scope of #264. --- .../provider/hmc/templates/webhooks.yaml | 112 ------------------ 1 file changed, 112 deletions(-) diff --git a/templates/provider/hmc/templates/webhooks.yaml b/templates/provider/hmc/templates/webhooks.yaml index 6eaca013..7d372f9b 100644 --- a/templates/provider/hmc/templates/webhooks.yaml +++ b/templates/provider/hmc/templates/webhooks.yaml @@ -50,72 +50,6 @@ webhooks: resources: - managements sideEffects: None - - admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: {{ include "hmc.webhook.serviceName" . }} - namespace: {{ include "hmc.webhook.serviceNamespace" . }} - path: /mutate-hmc-mirantis-com-v1alpha1-clustertemplate - failurePolicy: Fail - matchPolicy: Equivalent - name: mutation.clustertemplate.hmc.mirantis.com - rules: - - apiGroups: - - hmc.mirantis.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - clustertemplates - sideEffects: None - - admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: {{ include "hmc.webhook.serviceName" . }} - namespace: {{ include "hmc.webhook.serviceNamespace" . }} - path: /mutate-hmc-mirantis-com-v1alpha1-servicetemplate - failurePolicy: Fail - matchPolicy: Equivalent - name: mutation.servicetemplate.hmc.mirantis.com - rules: - - apiGroups: - - hmc.mirantis.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - servicetemplates - sideEffects: None - - admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: {{ include "hmc.webhook.serviceName" . }} - namespace: {{ include "hmc.webhook.serviceNamespace" . }} - path: /mutate-hmc-mirantis-com-v1alpha1-providertemplate - failurePolicy: Fail - matchPolicy: Equivalent - name: mutation.providertemplate.hmc.mirantis.com - rules: - - apiGroups: - - hmc.mirantis.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - providertemplates - sideEffects: None --- apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration @@ -193,50 +127,4 @@ webhooks: resources: - clustertemplates sideEffects: None - - admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: {{ include "hmc.webhook.serviceName" . }} - namespace: {{ include "hmc.webhook.serviceNamespace" . }} - path: /validate-hmc-mirantis-com-v1alpha1-servicetemplate - failurePolicy: Fail - matchPolicy: Equivalent - name: validation.servicetemplate.hmc.mirantis.com - rules: - - apiGroups: - - hmc.mirantis.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - - DELETE - resources: - - servicetemplates - sideEffects: None - - admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: {{ include "hmc.webhook.serviceName" . }} - namespace: {{ include "hmc.webhook.serviceNamespace" . }} - path: /validate-hmc-mirantis-com-v1alpha1-providertemplate - failurePolicy: Fail - matchPolicy: Equivalent - name: validation.providertemplate.hmc.mirantis.com - rules: - - apiGroups: - - hmc.mirantis.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - - DELETE - resources: - - providertemplates - sideEffects: None {{- end }}