41835ac9 by Adam Heath

Update to use gotemplate instead of jsonpath for the output.

1 parent e5309b4b
......@@ -69,7 +69,7 @@ spec:
#!/usr/bin/env bash
set -ex
kubectl create -f /workspace/postgresql-pod.yaml -o jsonpath --template '{.metadata.name}'/ > $(results.service-name.path)
kubectl create -f /workspace/postgresql-pod.yaml -o go-template --template '{{ if eq .kind "Service" }}{{.metadata.name }}{{ end }}' > $(results.service-name.path)
echo "servie name: $(cat $(results.service-name.path))"
---
......