diff --git a/incubator/vault/Chart.yaml b/incubator/vault/Chart.yaml index 2d68710ef6..c967d1b158 100644 --- a/incubator/vault/Chart.yaml +++ b/incubator/vault/Chart.yaml @@ -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 diff --git a/incubator/vault/README.md b/incubator/vault/README.md index bcdae1b6af..2705839165 100644 --- a/incubator/vault/README.md +++ b/incubator/vault/README.md @@ -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 | diff --git a/incubator/vault/templates/deployment.yaml b/incubator/vault/templates/deployment.yaml index daac59165a..81b5b8d95c 100644 --- a/incubator/vault/templates/deployment.yaml +++ b/incubator/vault/templates/deployment.yaml @@ -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 }}" diff --git a/incubator/vault/values.yaml b/incubator/vault/values.yaml index 63c01c5694..eb3aaa73b4 100644 --- a/incubator/vault/values.yaml +++ b/incubator/vault/values.yaml @@ -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"