Add optional UpstreamAuthority (#79)

Co-authored-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Ken Huffman
2023-02-18 13:04:08 +01:00
committed by Marco Franssen
co-authored by Marco Franssen
parent ddf4be3d3d
commit ce86fb97e1
4 changed files with 43 additions and 0 deletions
@@ -59,6 +59,20 @@ data:
config_map = "{{ include "spire.fullname" . }}-bundle"
}
}
{{- with .Values.server.config.upstreamAuthority.disk }}
{{- if eq (.enabled | toString) "true" }}
UpstreamAuthority "disk" {
plugin_data {
cert_file_path = "{{ .certFilePath }}"
key_file_path = "{{ .keyFilePath }}"
{{- if ne .bundleFilePath "" }}
bundle_file_path = "{{ .bundleFilePath }}"
{{- end }}
}
}
{{- end }}
{{- end }}
}
health_checks {
@@ -59,6 +59,11 @@ spec:
mountPath: /run/spire/data
readOnly: false
{{ end }}
{{- if eq (.Values.server.caSecretStorage.enabled | toString) "true" }}
- name: secret-data
mountPath: {{ .Values.server.caSecretStorage.path }}
readOnly: false
{{ end }}
livenessProbe:
httpGet:
path: /live
@@ -122,6 +127,11 @@ spec:
hostPath:
path: /run/spire/server-sockets
type: DirectoryOrCreate
{{- if eq (.Values.server.caSecretStorage.enabled | toString) "true" }}
- name: secret-data
secret:
secretName: {{ .Values.server.caSecretStorage.secretName }}
{{- end }}
volumeClaimTemplates:
{{- if eq (.Values.server.dataStorage.enabled | toString) "true" }}
- metadata: