This patch makes it possible to install the subcharts in different namespaces as needed. Signed-off-by: Kevin Fox <[email protected]>
25 lines
769 B
YAML
25 lines
769 B
YAML
{{- $root := . }}
|
|
{{- with .Values.controllerManager }}
|
|
{{- if and (eq (.enabled | toString) "true") (eq (.identities.enabled | toString) "true") }}
|
|
apiVersion: spire.spiffe.io/v1alpha1
|
|
kind: ClusterSPIFFEID
|
|
metadata:
|
|
name: {{ include "spire-controller-manager.fullname" $root }}-service-account-based
|
|
namespace: {{ include "spire-server.namespace" $root }}
|
|
spec:
|
|
spiffeIDTemplate: {{ .identities.spiffeIDTemplate | quote }}
|
|
{{- with .identities.podSelector }}
|
|
podSelector:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .identities.namespaceSelector }}
|
|
namespaceSelector:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .identities.dnsNameTemplates }}
|
|
dnsNameTemplates:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|