-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image-Che field not read correctly from deploy_che.sh (OpenShift) #14427
Comments
@sleshchenko Could you check pls? |
@AmitChameides deploy.sh are in the decommissioning state #13888 can you test chectl https://www.eclipse.org/che/docs/che-7/installing-the-chectl-management-tool/? |
Hey @skabashnyuk and @tolusha , thank you for your reply. |
@AmitChameides You're right, and
|
Thanks for your help @sleshchenko. That workaround indeed let me configure the correct local registry. |
@AmitChameides BTW if chectl does not allow to specify registry - please create the corresponding issue |
Describe the bug
When certain values are put into the
--image-che=(specified Che image)
field when running thedeploy_che.sh
script, they are ignored or read incorrectly.I had this happen when I was using a Che image from a local Docker registry. For the sake of this example, let's say the registry was
1.2.3.4:5000
.Then, my image repository would be
1.2.3.4:5000/my-image:my-image-tag
. Changing the image to this tag or pushing/pulling from this tag works just fine.However, when using the
deploy_che.sh
script (For example, by writing./deploy_che.sh --multiuser --project=project-name --image-che=1.2.3.4:5000/my-image:my-image-tag
), the image and the port are read incorrectly.Instead of the source image being read as
1.2.3.4:5000/my-image
and the image tag asmy-image-tag
, the source image is instead read as1.2.3.4
and the image tag remainsmy-image-tag
.This, of course, makes Che unable to properly pull the image and results in an error when deploying the Che pod. Changing the environment variables of
CHE_IMAGE_REPO
andCHE_IMAGE_TAG
has no effect as far as I've seen.Che version
Steps to reproduce
docker tag
command.docker push
../deploy_che.sh --multiuser --project=project-name --image-che=1.2.3.4:5000/my-image:my-image-tag
.Expected behavior
The image repository and tag read correctly from the input field of
--image-che
.Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
Environment
Additional context
I am aware that doing this requires authentication for the local Docker registry as well. I left it out of this bug report because it's irrelevant to it (The bug occurs prior to even trying to pull the image). But do note that I did set up a secret for the registry authentication, so the image pull fail isn't related to that.
Also, I'm running Che on OCP, and in multiuser mode.
The text was updated successfully, but these errors were encountered: