41835ac9 by Adam Heath

Update to use gotemplate instead of jsonpath for the output.

1 parent e5309b4b
...@@ -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 ---
......