Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conversion webhook handling to the helm chart template #2223

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading