diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-03 15:37:53 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-03 15:37:53 -0500 |
commit | 26b37a59d52665bf2b7663326dd72a2262faf844 (patch) | |
tree | 67a8f2b9c5b472204f0e56560c3defe87a11c072 /roles/openshift_cli/templates | |
parent | aef4ac6419d80b7002a7a6ab13ef8d928408e8d0 (diff) | |
parent | 322689ef0dc93a39cc9fef2d86eecfdc11e953ef (diff) | |
download | openshift-26b37a59d52665bf2b7663326dd72a2262faf844.tar.gz openshift-26b37a59d52665bf2b7663326dd72a2262faf844.tar.bz2 openshift-26b37a59d52665bf2b7663326dd72a2262faf844.tar.xz openshift-26b37a59d52665bf2b7663326dd72a2262faf844.zip |
Merge pull request #1483 from brenton/32upgrade
First past at the upgrade process for 3.2
Diffstat (limited to 'roles/openshift_cli/templates')
-rw-r--r-- | roles/openshift_cli/templates/openshift.j2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_cli/templates/openshift.j2 b/roles/openshift_cli/templates/openshift.j2 index a7c148a22..f969a4bab 100644 --- a/roles/openshift_cli/templates/openshift.j2 +++ b/roles/openshift_cli/templates/openshift.j2 @@ -5,10 +5,11 @@ fi cmd=`basename $0` user=`id -u` group=`id -g` +image_tag={{ image_tag | default(openshift.common.image_tag) }} >&2 echo """ ================================================================================ -ATTENTION: You are running ${cmd} via a wrapper around 'docker run {{ openshift.common.cli_image }}'. +ATTENTION: You are running ${cmd} via a wrapper around 'docker run {{ openshift.common.cli_image }}:${image_tag}'. This wrapper is intended only to be used to bootstrap an environment. Please install client tools on another host once you have granted cluster-admin privileges to a user. @@ -20,4 +21,4 @@ See https://docs.openshift.org/latest/cli_reference/get_started_cli.html ================================================================================= """ -docker run -i --privileged --net=host --user=${user}:${group} -v ~/.kube:/root/.kube -v /tmp:/tmp -v {{ openshift.common.config_base}}:{{ openshift.common.config_base }} -e KUBECONFIG=/root/.kube/config --entrypoint ${cmd} --rm {{ openshift.common.cli_image }} "${@}" +docker run -i --privileged --net=host --user=${user}:${group} -v ~/.kube:/root/.kube -v /tmp:/tmp -v {{ openshift.common.config_base}}:{{ openshift.common.config_base }} -e KUBECONFIG=/root/.kube/config --entrypoint ${cmd} --rm {{ openshift.common.cli_image }}:${image_tag} "${@}" |