Skip to content

Commit

Permalink
updates dex-k8s-authenticator with custom cert path info
Browse files Browse the repository at this point in the history
  • Loading branch information
GoelDeepak committed Jan 18, 2020
1 parent c91a26c commit 34ffcc9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions staging/dex-k8s-authenticator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ data:
clusters:
{{ toYaml .clusters | indent 4 }}
{{- end }}
{{- if .Values.caCerts.enabled }}
caCerts: "true"
{{- if .Values.caCerts.secrets }}
caCertPath: /certs/{{ .filename }}
{{- else }}
caCertPath: /certs/ca.crt
{{- end }}
{{- end }}

12 changes: 12 additions & 0 deletions staging/dex-k8s-authenticator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ spec:
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8 }}
volumeMounts:
{{- if .Values.caCerts.enabled }}
{{- if .Values.caCerts.secrets }}
{{- range .Values.caCerts.secrets }}
- name: {{ template "dex-k8s-authenticator.fullname" $ }}-{{ .name }}
mountPath: /certs/
{{- end }}
{{- else if .Values.caCerts.caSecretName }}
- name: {{ template "dex-k8s-authenticator.fullname" $ }}-ca-certificate
mountPath: /certs/
{{- end }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down

0 comments on commit 34ffcc9

Please sign in to comment.