Skip to content

Commit

Permalink
Merge pull request #2223 from pubudu538/cc-redis
Browse files Browse the repository at this point in the history
Add conversion webhook handling to the helm chart template
  • Loading branch information
CrowleyRajapakse authored Apr 2, 2024
2 parents e81084b + c017466 commit aa55725
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 aa55725

Please sign in to comment.