Add a flag to configure the Kubernetes NodeAttestor (#83)

This commit is contained in:
kfox1111
2023-03-06 19:59:54 +01:00
committed by GitHub
parent 027556904d
commit f123296032
4 changed files with 13 additions and 5 deletions
@@ -1,4 +1,4 @@
{{ $namespace := .Release.Namespace }}
{{ $root := . }}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -36,15 +36,19 @@ data:
}
}
{{- with .Values.nodeAttestor.k8sPsat }}
{{- if eq (.enabled | toString) "true" }}
NodeAttestor "k8s_psat" {
plugin_data {
clusters = {
{{ .Values.clusterName | quote }} = {
service_account_allow_list = {{ include "spire-server.serviceAccountAllowedList" . | trim }}
{{ $root.Values.clusterName | quote }} = {
service_account_allow_list = {{ include "spire-server.serviceAccountAllowedList" $root | trim }}
}
}
}
}
{{- end }}
{{- end }}
KeyManager "disk" {
plugin_data {
@@ -80,7 +84,7 @@ data:
issuer_name = {{ .issuer_name | quote }}
issuer_kind = {{ .issuer_kind | quote }}
issuer_group = {{ .issuer_group | quote }}
namespace = {{ default $namespace .namespace | quote }}
namespace = {{ default $root.Release.Namespace .namespace | quote }}
{{- if ne .kube_config_file "" }}
kube_config_file = {{ .kube_config_file | quote }}
{{- end }}