737e326f by Adam Heath

Fake out a HOME.

1 parent 7cf8d0d1
...@@ -5,7 +5,9 @@ metadata: ...@@ -5,7 +5,9 @@ metadata:
5 name: k8s-bootstrap-config 5 name: k8s-bootstrap-config
6 namespace: kube-system 6 namespace: kube-system
7 data: 7 data:
8 GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no -i /tmp/cluster-ssh/ssh-private-key 8 HOME: /tmp/cluster-home
9 GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
10 #-i /tmp/cluster-ssh/ssh-private-key
9 --- 11 ---
10 apiVersion: v1 12 apiVersion: v1
11 kind: ConfigMap 13 kind: ConfigMap
...@@ -17,6 +19,7 @@ data: ...@@ -17,6 +19,7 @@ data:
17 #!/bin/sh 19 #!/bin/sh
18 set -ex 20 set -ex
19 # FIXME: don't hard-code this. 21 # FIXME: don't hard-code this.
22 echo "GIT_SSH_COMMAND=$GIT_SSH_COMMAND"
20 git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day 23 git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
21 --- 24 ---
22 apiVersion: batch/v1 25 apiVersion: batch/v1
...@@ -59,7 +62,8 @@ spec: ...@@ -59,7 +62,8 @@ spec:
59 - name: k8s-bootstrap-scripts 62 - name: k8s-bootstrap-scripts
60 mountPath: /tmp/k8s-bootstrap-scripts 63 mountPath: /tmp/k8s-bootstrap-scripts
61 - name: cluster-ssh 64 - name: cluster-ssh
62 mountPath: /tmp/cluster-ssh 65 mountPath: /tmp/cluster-home/.ssh/id
66 subPath: ssh-private-key
63 - name: git-storage 67 - name: git-storage
64 mountPath: /tmp/git-storage 68 mountPath: /tmp/git-storage
65 command: ["/tmp/k8s-bootstrap-scripts/clone-start-of-day"] 69 command: ["/tmp/k8s-bootstrap-scripts/clone-start-of-day"]
......