Skip to content

Commit

Permalink
always create cas configmap and mount it in kotsadm pod (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Sep 11, 2024
1 parent f2146f9 commit 181a4cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/configmap-extra-cas.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{- if and .Release.IsInstall (not (empty .Values.extraCAs)) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: kotsadm-extra-ca
{{- if (not (empty .Values.extraCAs)) }}
data:
{{- range $key, $value := .Values.extraCAs }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- else }}
data: {}
{{- end }}
7 changes: 7 additions & 0 deletions templates/kotsadm-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ spec:
{{- end }}
- name: DISABLE_OUTBOUND_CONNECTIONS
value: {{ .Values.isAirgap | quote }}
- name: SSL_CERT_DIR
value: /certs
image: {{ .Values.images.kotsadm }}
imagePullPolicy: IfNotPresent
name: kotsadm
Expand All @@ -115,6 +117,8 @@ spec:
name: backup
- mountPath: /tmp
name: tmp
- mountPath: /certs
name: kotsadm-extra-ca
initContainers:
- args:
- plan
Expand Down Expand Up @@ -204,3 +208,6 @@ spec:
name: backup
- emptyDir: {}
name: tmp
- configmap:
name: kotsadm-extra-ca
name: kotsadm-extra-ca

0 comments on commit 181a4cd

Please sign in to comment.