[incubator/vault] allow extra init containers to be added (#9249)

* allow extra init containers to be added

Signed-off-by: Michael Raimondi <mike@mikeraimondi.com>

* fix extraInitContainers default to be `{}`

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>

* document default of extraInitContainers to be `{}`

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
This commit is contained in:
Michael Raimondi
2019-03-07 07:51:03 -08:00
committed by Kubernetes Prow Robot
parent a37e4432b5
commit 0ee4fc6f21
4 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Vault, a tool for managing secrets
name: vault
version: 0.14.9
version: 0.14.10
appVersion: 1.0.1
home: https://www.vaultproject.io/
icon: https://www.vaultproject.io/assets/images/mega-nav/logo-vault-0f83e3d2.svg
+1
View File
@@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Vault chart and the
| `vault.dev` | Use Vault in dev mode | true (set to false in production) |
| `vault.extraEnv` | Extra env vars for Vault pods | `{}` |
| `vault.extraContainers` | Sidecar containers to add to the vault pod | `{}` |
| `vault.extraInitContainers` | Init containers to be added to the vault pod | `{}` |
| `vault.extraVolumes` | Additional volumes to the controller pod | `{}` |
| `vault.customSecrets` | Custom secrets available to Vault | `[]` |
| `vault.config` | Vault configuration | No default backend |
@@ -29,6 +29,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if .Values.vault.extraInitContainers }}
initContainers:
{{ tpl .Values.vault.extraInitContainers . | indent 6 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
+5
View File
@@ -128,6 +128,11 @@ vault:
# - name: some-mount
# mountPath: /some/path
extraVolumes: {}
extraInitContainers: {}
## Init containers to be added
# - name: do-something
# image: busybox
# command: ['do', 'something']
# Log level
# https://www.vaultproject.io/docs/commands/server.html#log-level
logLevel: "info"