Skip to content

Commit

Permalink
Add annotations to validating and mutating webhooks
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Llaca <[email protected]>
  • Loading branch information
fllaca committed Jun 15, 2020
1 parent e58a3fb commit bf9b4be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/stash/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: 'Stash by AppsCode - Backup your Kubernetes Volumes'
name: stash
version: 0.8.3
version: 0.8.4
appVersion: 0.8.3
home: https://github.com/appscode/stash
icon: https://cdn.appscode.com/images/icon/stash.png
Expand Down
3 changes: 3 additions & 0 deletions chart/stash/templates/mutating-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
{{- if .Values.apiserver.mutatingWebhookAnnotations }}
{{- toYaml .Values.apiserver.mutatingWebhookAnnotations | nindent 4 }}
{{- end }}
webhooks:
- name: deployment.admission.stash.appscode.com
clientConfig:
Expand Down
3 changes: 3 additions & 0 deletions chart/stash/templates/validating-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
{{- if .Values.apiserver.validatingWebhookAnnotations }}
{{- toYaml .Values.apiserver.validatingWebhookAnnotations | nindent 4 }}
{{- end }}
webhooks:
- name: restic.admission.stash.appscode.com
clientConfig:
Expand Down
4 changes: 4 additions & 0 deletions chart/stash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ apiserver:
enableValidatingWebhook: true
# CA certificate used by main Kubernetes api server
ca: not-ca-cert

mutatingWebhookAnnotations: {}
validatingWebhookAnnotations: {}

# If true, disables status sub resource for crds.
# Otherwise, enables status sub resource for Kubernetes version >= 1.11 and disables for other versions.
disableStatusSubresource: false
Expand Down

0 comments on commit bf9b4be

Please sign in to comment.