Skip to content

Commit

Permalink
Use post-install hooks to install admission controller in chart (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed May 22, 2018
1 parent b50824e commit bf59c61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chart/stash/templates/mutating-webhook.yaml
Expand Up @@ -8,6 +8,9 @@ metadata:
app: "{{ template "stash.name" . }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded
webhooks:
- name: deployment.admission.stash.appscode.com
clientConfig:
Expand Down
3 changes: 3 additions & 0 deletions chart/stash/templates/validating-webhook.yaml
Expand Up @@ -8,6 +8,9 @@ metadata:
app: "{{ template "stash.name" . }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded
webhooks:
- name: restic.admission.stash.appscode.com
clientConfig:
Expand Down

0 comments on commit bf59c61

Please sign in to comment.