Make default pod name match the one from template

This commit is contained in:
Rodolfo Carvalho 2015-06-17 17:30:00 +02:00
parent f4f8364a4a
commit 6525c94458

View file

@ -34,7 +34,7 @@
# Get name of a currently deployed pod by label and index # Get name of a currently deployed pod by label and index
POD_INSTANCE_NAME=`oc get pods \ POD_INSTANCE_NAME=`oc get pods \
-l "name=${POD_NAME:-django}" \ -l "name=${POD_NAME:-django-frontend}" \
-t "{{ with index .items ${POD_INDEX:-0} }}{{ .metadata.name }}{{ end }}"` -t "{{ with index .items ${POD_INDEX:-0} }}{{ .metadata.name }}{{ end }}"`
# Run command in a container of the specified pod: # Run command in a container of the specified pod: