Skip to content

Commit

Permalink
Allow specifying custom Certificate Authority as a ConfigMap name (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin authored Sep 20, 2024
1 parent 8d0fa11 commit 5dea5a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions chart/templates/replicated-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ spec:
- name: replicated
secret:
secretName: {{ include "replicated.secretName" . }}
{{- if .Values.privateCAConfigmap }}
- name: additional-certs
configMap:
defaultMode: 420
name: {{ .Values.privateCAConfigmap }}
{{- end }}
containers:
- name: replicated
image: {{ index .Values.images "replicated-sdk" }}
Expand All @@ -60,10 +66,18 @@ spec:
mountPath: /etc/replicated/config.yaml
readOnly: true
subPath: config.yaml
{{- if .Values.privateCAConfigmap }}
- mountPath: /certs
name: additional-certs
{{- end }}
env:
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.privateCAConfigmap }}
- name: SSL_CERT_DIR
value: /certs
{{- end }}
- name: REPLICATED_NAMESPACE
valueFrom:
fieldRef:
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ service:
type: ClusterIP
port: 3000

privateCAConfigmap: ~

extraEnv: []

# "integration" mode related values.
Expand Down

0 comments on commit 5dea5a3

Please sign in to comment.