option to set KeyManager memory in spire server (#444)

This commit is contained in:
grameshtwilio
2023-08-12 20:55:40 +02:00
committed by GitHub
parent a167ce6890
commit e60f5287e0
4 changed files with 29 additions and 0 deletions
@@ -1,5 +1,6 @@
{{- define "spire-server.yaml-config" -}}
{{- $upstreamAuthorityUsed := 0 }}
{{- $keyManagerUsed := 0 }}
{{- $root := . }}
server:
bind_address: "0.0.0.0"
@@ -47,10 +48,28 @@ plugins:
{{- end }}
{{- end }}
{{- with .Values.keyManager.disk }}
{{- if eq (.enabled | toString) "true" }}
{{- $keyManagerUsed = add1 $keyManagerUsed }}
KeyManager:
- disk:
plugin_data:
keys_path: "/run/spire/data/keys.json"
{{- end }}
{{- end }}
{{- with .Values.keyManager.memory }}
{{- if eq (.enabled | toString) "true" }}
{{- $keyManagerUsed = add1 $keyManagerUsed }}
KeyManager:
- memory:
plugin_data:
{{- end }}
{{- end }}
{{- if gt $keyManagerUsed 1 }}
{{- fail "You can only enable a single KeyManager" }}
{{- end }}
Notifier:
- k8sbundle: