Update to use gotemplate instead of jsonpath for the output.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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}'/ > $(results.service-name.path) | 72 | kubectl create -f /workspace/postgresql-pod.yaml -o go-template --template '{{ if eq .kind "Service" }}{{.metadata.name }}{{ end }}' > $(results.service-name.path) |
73 | echo "servie name: $(cat $(results.service-name.path))" | 73 | echo "servie name: $(cat $(results.service-name.path))" |
74 | 74 | ||
75 | --- | 75 | --- | ... | ... |
-
Please register or sign in to post a comment