mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #4579 from brendandburns/master
Fix update.sh if DOCKER_HUB_USER isn't defined.
This commit is contained in:
commit
43088bc58e
@ -95,7 +95,7 @@ function validate() {
|
|||||||
|
|
||||||
template_string="{{(index .currentState.info \"${CONTROLLER_NAME}\").image}}"
|
template_string="{{(index .currentState.info \"${CONTROLLER_NAME}\").image}}"
|
||||||
current_image=$($KUBECTL get pods "$id" -o template --template="${template_string}") || true
|
current_image=$($KUBECTL get pods "$id" -o template --template="${template_string}") || true
|
||||||
if [[ "$current_image" != "${DOCKER_HUB_USER}/update-demo:${container_image_version}" ]]; then
|
if [[ "$current_image" != "kubernetes/update-demo:${container_image_version}" ]]; then
|
||||||
echo " ${id} is created but running wrong image"
|
echo " ${id} is created but running wrong image"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user