mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
0ee4fc6f21
commit
5cf6c3af10
@@ -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
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user