Finish up the result setting.
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -15,8 +15,8 @@ spec: | ... | @@ -15,8 +15,8 @@ spec: |
15 | default: bash | 15 | default: bash |
16 | - name: kustomize-image | 16 | - name: kustomize-image |
17 | default: us.gcr.io/k8s-artifacts-prod/kustomize/kustomize:v4.5.2 | 17 | default: us.gcr.io/k8s-artifacts-prod/kustomize/kustomize:v4.5.2 |
18 | # results: | 18 | results: |
19 | # - name: job-name | 19 | - name: service-name |
20 | volumes: | 20 | volumes: |
21 | - name: task-postgresql-pod-kustomization | 21 | - name: task-postgresql-pod-kustomization |
22 | configMap: | 22 | configMap: |
... | @@ -69,7 +69,7 @@ spec: | ... | @@ -69,7 +69,7 @@ spec: |
69 | #!/usr/bin/env bash | 69 | #!/usr/bin/env bash |
70 | 70 | ||
71 | set -ex | 71 | set -ex |
72 | kubectl create -f /workspace/postgresql-pod.yaml -o jsonpath --template '{.metadata.name}'/ > /workspace/create-output.json | 72 | kubectl create -f /workspace/postgresql-pod.yaml -o jsonpath --template '{.metadata.name}'/ > $(results.service-name.path) |
73 | cat /workspace/create-output.json | 73 | echo "servie name: $(cat $(results.service-name.path))" |
74 | 74 | ||
75 | --- | 75 | --- | ... | ... |
-
Please register or sign in to post a comment