Mount the sshdir into the helm-operator too
What is this MR for ?
Mounting the sshdir into the helm operator container
The known_hosts is only mounted in the flux container thus far.
@@ -24,6 +24,10 @@ spec:
serviceAccountName: {{ template "flux.serviceAccountName" . }}
{{- end }}
volumes:
+ - name: sshdir
+ configMap:
+ name: {{ template "flux.fullname" . }}-ssh-config
+ defaultMode: 0600
- name: git-key
secret:
secretName: {{ template "flux.fullname" . }}-git-deploy
@@ -33,6 +37,10 @@ spec:
image: "{{ .Values.helmOperator.repository }}:{{ .Values.helmOperator.tag }}"
imagePullPolicy: {{ .Values.helmOperator.pullPolicy }}
volumeMounts:
+ - name: sshdir
+ mountPath: /root/.ssh/known_hosts
+ subPath: known_hosts
+ readOnly: true
- name: git-key
mountPath: /etc/fluxd/ssh
readOnly: true
