[incubator/vault] allow usage of config in existing configmap (#11952)

* allow usage of config in existing configmap

Signed-off-by: Louise Champ <louise@livewyer.com>

* reformat comments

Signed-off-by: Louise Champ <louise@livewyer.com>

* Bumping chart version

Signed-off-by: Matt Farina <matt@mattfarina.com>
This commit is contained in:
Louise Champ
2019-03-07 08:07:10 -08:00
committed by Kubernetes Prow Robot
parent 0ee4fc6f21
commit 5cf6c3af10
5 changed files with 7 additions and 2 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.10
version: 0.14.11
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
@@ -58,6 +58,7 @@ The following table lists the configurable parameters of the Vault chart and the
| `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.existingConfigName` | Location of existing Vault configuration | nil |
| `vault.config` | Vault configuration | No default backend |
| `replicaCount` | k8s replicas | `3` |
| `resources.limits.cpu` | Container requested CPU | `nil` |
+2
View File
@@ -1,3 +1,4 @@
{{ if not .Values.vault.existingConfigName }}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -10,3 +11,4 @@ metadata:
data:
config.json: |
{{ .Values.vault.config | toJson }}
{{ end }}
+1 -1
View File
@@ -132,7 +132,7 @@ spec:
volumes:
- name: vault-config
configMap:
name: "{{ template "vault.fullname" . }}-config"
name: {{ if .Values.vault.existingConfigName }}{{ .Values.vault.existingConfigName }}{{- else }}"{{ template "vault.fullname" . }}-config"{{- end }}
- name: vault-root
emptyDir: {}
{{- range .Values.vault.customSecrets }}
+2
View File
@@ -144,6 +144,8 @@ vault:
readyIfSealed: false
readyIfStandby: true
readyIfUninitialized: true
## Use an existing config in a named ConfigMap
# existingConfigName: vault-cm
config:
# A YAML representation of a final vault config.json file.
# See https://www.vaultproject.io/docs/configuration/ for more information.