Align tornjak clientCA naming convention (#393)
This commit is contained in:
@@ -180,8 +180,8 @@ The code below determines what connection type should be used.
|
||||
|
||||
{{- if (lookup "v1" "Secret" (include "spire-server.namespace" .) .Values.tornjak.config.tlsSecret) -}}
|
||||
|
||||
{{- $caType := default "INVALID" .Values.tornjak.config.userCA.type }}
|
||||
{{- if (lookup "v1" $caType (include "spire-server.namespace" .) .Values.tornjak.config.userCA.name) -}}
|
||||
{{- $caType := default "INVALID" .Values.tornjak.config.clientCA.type }}
|
||||
{{- if (lookup "v1" $caType (include "spire-server.namespace" .) .Values.tornjak.config.clientCA.name) -}}
|
||||
{{- printf "mtls" -}}
|
||||
{{- else }}
|
||||
{{- printf "tls" -}}
|
||||
|
||||
@@ -253,15 +253,15 @@ spec:
|
||||
secretName: {{ .Values.tornjak.config.tlsSecret }}
|
||||
{{- end }}
|
||||
{{- if eq (include "spire-tornjak.connectionType" .) "mtls" }}
|
||||
{{- if eq .Values.tornjak.config.userCA.type "Secret" }}
|
||||
{{- if eq .Values.tornjak.config.clientCA.type "Secret" }}
|
||||
- name: user-cert
|
||||
secret:
|
||||
defaultMode: 256
|
||||
secretName: {{ .Values.tornjak.config.userCA.name }}
|
||||
{{- else if eq .Values.tornjak.config.userCA.type "ConfigMap" }}
|
||||
secretName: {{ .Values.tornjak.config.clientCA.name }}
|
||||
{{- else if eq .Values.tornjak.config.clientCA.type "ConfigMap" }}
|
||||
- name: user-cert
|
||||
configMap:
|
||||
name: {{ .Values.tornjak.config.userCA.name }}
|
||||
name: {{ .Values.tornjak.config.clientCA.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if eq (.Values.upstreamAuthority.disk.enabled | toString) "true" }}
|
||||
|
||||
Reference in New Issue
Block a user