ci: Mount ssh_known_hosts in client build pod
All checks were successful
dustin/sshca/pipeline/head This commit looks good

Apparently, the although the tooltip says " Volumes get mounted in all
containers with the specified mount path," volumes defined in the
default Pod Template in the Jenkins Kubernetes Cloud configuration
actually only get mounted in the JNLP agent container.  Containers
defined in the pod template YAML document are not included in this
interpretation of "all."
This commit is contained in:
2023-11-10 12:06:51 -06:00
parent 2243e9e41d
commit eec0bfc83c

View File

@@ -6,4 +6,12 @@ spec:
- cat
stdin: true
tty: true
volumeMounts:
- mountPath: /etc/ssh/ssh_known_hosts
name: ssh-known-hosts
subPath: ssh_known_hosts
hostUsers: false
volumes:
- name: ssh-known-hosts
configMap:
name: ssh-known-hosts