From c01746634fa64c84e21975b1ce12d11001e8ac80 Mon Sep 17 00:00:00 2001 From: Pubudu Gunatilaka Date: Mon, 1 Apr 2024 18:51:13 +0530 Subject: [PATCH] Add conversion webhook handling to the helm chart template --- helm-charts/templates/crds/dp.wso2.com_apis.yaml | 2 ++ helm-charts/values.yaml | 4 ++++ helm-charts/values.yaml.template | 1 + 3 files changed, 7 insertions(+) diff --git a/helm-charts/templates/crds/dp.wso2.com_apis.yaml b/helm-charts/templates/crds/dp.wso2.com_apis.yaml index 04c41c643..399c0c01f 100644 --- a/helm-charts/templates/crds/dp.wso2.com_apis.yaml +++ b/helm-charts/templates/crds/dp.wso2.com_apis.yaml @@ -7,6 +7,7 @@ metadata: cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ template "apk-helm.resource.prefix" . }}-common-controller-server-cert name: apis.dp.wso2.com spec: + {{- if .Values.wso2.apk.webhooks.conversionwebhookconfigurations }} conversion: strategy: Webhook webhook: @@ -17,6 +18,7 @@ spec: path: /convert conversionReviewVersions: - v1 + {{- end }} group: dp.wso2.com names: kind: API diff --git a/helm-charts/values.yaml b/helm-charts/values.yaml index 0ca8fce49..02dd78d35 100644 --- a/helm-charts/values.yaml +++ b/helm-charts/values.yaml @@ -22,6 +22,7 @@ wso2: webhooks: validatingwebhookconfigurations: true mutatingwebhookconfigurations: true + conversionwebhookconfigurations: true auth: enabled: true enableServiceAccountCreation: true @@ -250,6 +251,9 @@ wso2: # skipSSLVerification: false # hostnameVerifier: "AllowAll" + cp: + enabled: false + metrics: enabled: false # configDSBalHost: 0.0.0.0 diff --git a/helm-charts/values.yaml.template b/helm-charts/values.yaml.template index 9750b0a7e..16f657634 100644 --- a/helm-charts/values.yaml.template +++ b/helm-charts/values.yaml.template @@ -24,6 +24,7 @@ wso2: webhooks: validatingwebhookconfigurations : true mutatingwebhookconfigurations : true + conversionwebhookconfigurations : true auth: # -- Enable Service Account Creation enabled: true