737e326f by Adam Heath

Fake out a HOME.

1 parent 7cf8d0d1
......@@ -5,7 +5,9 @@ metadata:
name: k8s-bootstrap-config
namespace: kube-system
data:
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no -i /tmp/cluster-ssh/ssh-private-key
HOME: /tmp/cluster-home
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
#-i /tmp/cluster-ssh/ssh-private-key
---
apiVersion: v1
kind: ConfigMap
......@@ -17,6 +19,7 @@ data:
#!/bin/sh
set -ex
# FIXME: don't hard-code this.
echo "GIT_SSH_COMMAND=$GIT_SSH_COMMAND"
git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
---
apiVersion: batch/v1
......@@ -59,7 +62,8 @@ spec:
- name: k8s-bootstrap-scripts
mountPath: /tmp/k8s-bootstrap-scripts
- name: cluster-ssh
mountPath: /tmp/cluster-ssh
mountPath: /tmp/cluster-home/.ssh/id
subPath: ssh-private-key
- name: git-storage
mountPath: /tmp/git-storage
command: ["/tmp/k8s-bootstrap-scripts/clone-start-of-day"]
......