Skip to content

Commit 5dea5a3

Browse files
authored
Allow specifying custom Certificate Authority as a ConfigMap name (#209)
1 parent 8d0fa11 commit 5dea5a3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

chart/templates/replicated-deployment.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ spec:
4848
- name: replicated
4949
secret:
5050
secretName: {{ include "replicated.secretName" . }}
51+
{{- if .Values.privateCAConfigmap }}
52+
- name: additional-certs
53+
configMap:
54+
defaultMode: 420
55+
name: {{ .Values.privateCAConfigmap }}
56+
{{- end }}
5157
containers:
5258
- name: replicated
5359
image: {{ index .Values.images "replicated-sdk" }}
@@ -60,10 +66,18 @@ spec:
6066
mountPath: /etc/replicated/config.yaml
6167
readOnly: true
6268
subPath: config.yaml
69+
{{- if .Values.privateCAConfigmap }}
70+
- mountPath: /certs
71+
name: additional-certs
72+
{{- end }}
6373
env:
6474
{{- with .Values.extraEnv }}
6575
{{- toYaml . | nindent 8 }}
6676
{{- end }}
77+
{{- if .Values.privateCAConfigmap }}
78+
- name: SSL_CERT_DIR
79+
value: /certs
80+
{{- end }}
6781
- name: REPLICATED_NAMESPACE
6882
valueFrom:
6983
fieldRef:

chart/values.yaml.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ service:
4545
type: ClusterIP
4646
port: 3000
4747

48+
privateCAConfigmap: ~
49+
4850
extraEnv: []
4951

5052
# "integration" mode related values.

0 commit comments

Comments
 (0)