58353b7f by Adam Heath

Rename the configmap mounts, with a task- prefix.

1 parent 6b3687d0
...@@ -18,9 +18,9 @@ spec: ...@@ -18,9 +18,9 @@ spec:
18 # results: 18 # results:
19 # - name: job-name 19 # - name: job-name
20 volumes: 20 volumes:
21 - name: postgresql-pod-kustomization 21 - name: task-postgresql-pod-kustomization
22 configMap: 22 configMap:
23 name: postgresql-pod-kustomization 23 name: task-postgresql-pod-kustomization
24 steps: 24 steps:
25 - name: mount-postgresql-pod-kustomization 25 - name: mount-postgresql-pod-kustomization
26 image: $(params.bash-image) 26 image: $(params.bash-image)
...@@ -28,7 +28,7 @@ spec: ...@@ -28,7 +28,7 @@ spec:
28 #!/usr/bin/env bash 28 #!/usr/bin/env bash
29 set -ex 29 set -ex
30 mkdir /workspace/kustomizations 30 mkdir /workspace/kustomizations
31 cd /srv/postgresql-pod-kustomization-cm/ 31 cd /srv/task-postgresql-pod-kustomization-cm/
32 for file in *; do 32 for file in *; do
33 translated="$(echo "$file" | sed "s,_,/,g")" 33 translated="$(echo "$file" | sed "s,_,/,g")"
34 dir="$(dirname "$translated")" 34 dir="$(dirname "$translated")"
...@@ -37,8 +37,8 @@ spec: ...@@ -37,8 +37,8 @@ spec:
37 cp "$file" "/workspace/kustomizations/$dir/$base" 37 cp "$file" "/workspace/kustomizations/$dir/$base"
38 done 38 done
39 volumeMounts: 39 volumeMounts:
40 - name: postgresql-pod-kustomization 40 - name: task-postgresql-pod-kustomization
41 mountPath: /srv/postgresql-pod-kustomization-cm 41 mountPath: /srv/task-postgresql-pod-kustomization-cm
42 - name: run-kustomize-4-x 42 - name: run-kustomize-4-x
43 image: $(params.kustomize-image) 43 image: $(params.kustomize-image)
44 script: | 44 script: |
......