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 the possibility to specify webhook annotations #66

Open
wants to merge 1 commit into
base: release-0.8
Choose a base branch
from
Open
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: 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