Skip to content

Commit 6c2b5c7

Browse files
committed
fix: only volumemount if cacert if there
1 parent 5c44219 commit 6c2b5c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/apl-keycloak-operator/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ spec:
4242
{{- end }}
4343
resources:
4444
{{- toYaml .Values.resources | nindent 12 }}
45+
{{- if and .Values.configs (not (empty .Values.configs.tls.certificates)) }}
4546
volumeMounts:
4647
- name: tls-certs
4748
mountPath: /app/config/tls/certificate.crt
4849
subPath: certificate.crt
50+
{{- end }}
4951
{{- with .Values.nodeSelector }}
5052
nodeSelector:
5153
{{- toYaml . | nindent 8 }}
@@ -59,9 +61,11 @@ spec:
5961
{{- toYaml . | nindent 8 }}
6062
{{- end }}
6163
volumes:
64+
{{- if and .Values.configs (not (empty .Values.configs.tls.certificates)) }}
6265
- name: tls-certs
6366
secret:
6467
secretName: keycloak-operator-tls-certs-cm
68+
{{- end }}
6569
- name: operator-config-kc
6670
configMap:
6771
name: apl-keycloak-operator-cm

0 commit comments

Comments
 (0)