Change location of jenkins slave space mount
I believe mounting at home is causing issues when setting up the kubectl
since multiple machines are trying to edit the kubeconfig at the same
time. The kubeconfig is under "/home/jenkins/.kube". Changed the way the
mount mounted so that it mounts to "${HOME}/workspace" for all the jobs
launched into kubernetes.
Change-Id: I34038e44f80f90d6905dd3036b91874502aaab07
Signed-off-by: Alanny Lopez <Alanny.Lopez@ibm.com>
diff --git a/kubernetes/Templates/OpenBMC-build-job-v2.yaml b/kubernetes/Templates/OpenBMC-build-job-v2.yaml
index 902246c..f379bff 100644
--- a/kubernetes/Templates/OpenBMC-build-job-v2.yaml
+++ b/kubernetes/Templates/OpenBMC-build-job-v2.yaml
@@ -16,9 +16,9 @@
nodeSelector:
beta.kubernetes.io/arch: ${ARCH}
volumes:
- - name: home
+ - name: workspace
persistentVolumeClaim:
- claimName: ${hclaim}
+ claimName: ${wclaim}
- name: sscdir
persistentVolumeClaim:
claimName: ${sclaim}
@@ -40,9 +40,9 @@
add:
- SYS_ADMIN
volumeMounts:
- - name: home
- mountPath: ${HOME}
+ - name: workspace
+ mountPath: ${HOME}/workspace
- name: sscdir
mountPath: ${sscdir}
imagePullSecrets:
- - name: ${imgplsec}
\ No newline at end of file
+ - name: ${imgplsec}