Skip to content

Commit

Permalink
Add conversion webhook handling to the helm chart template
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 committed Apr 1, 2024
1 parent 09db166 commit c017466
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-charts/templates/crds/dp.wso2.com_apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -17,6 +18,7 @@ spec:
path: /convert
conversionReviewVersions:
- v1
{{- end }}
group: dp.wso2.com
names:
kind: API
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ wso2:
webhooks:
validatingwebhookconfigurations: true
mutatingwebhookconfigurations: true
conversionwebhookconfigurations: true
auth:
enabled: true
enableServiceAccountCreation: true
Expand Down Expand Up @@ -250,6 +251,9 @@ wso2:
# skipSSLVerification: false
# hostnameVerifier: "AllowAll"

cp:
enabled: false

metrics:
enabled: false
# configDSBalHost: 0.0.0.0
Expand Down
1 change: 1 addition & 0 deletions helm-charts/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ wso2:
webhooks:
validatingwebhookconfigurations : true
mutatingwebhookconfigurations : true
conversionwebhookconfigurations : true
auth:
# -- Enable Service Account Creation
enabled: true
Expand Down

0 comments on commit c017466

Please sign in to comment.