-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Container image registry is ignored when using quarkus-openshift #28284
Conversation
Relates to quarkiverse/quarkus-helm#100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me
Apart from the issues described in the description, I found another one related to the user permissions when using the default Dockerfile (the one provided by Quarkus when creating a new application) with the following content:
When deploying the application to OpenShift, it will fail because it does not have permission to run the script The workaround I found for my testing is to change this line: |
This comment has been minimized.
This comment has been minimized.
This commit fixes several issues when using the `quarkus-openshift` extension: - When providing the registry using the property `quarkus.container-image.image` (for example, quay.io/user/app:version, the registry is `quay.io`), the extension `quarkus-openshift` ignores the registry and uses the fallback property which is `docker.io`. - The `quarkus-openshift` extension always creates the ImageStream resource regardless of the container image builder used (s2i, docker, jib, ...). However, when the user provides a docker image, it was using it for the container image of the Deployment resource, and this ImageStream was never in use. After these changes, the Deployment resource always uses the ImageStream resource, so no changes in the documentation are necessary. - When the user provides a docker image and the deployment kind is "DeploymentConfig" (the default option), the `quarkus-openshift` extension removes the trigger image change params, so when deploying the application, the application is not automatically started.
5696678
to
827b1ab
Compare
Yeah, it's not great but I don't really know what else we can do... |
It seems that the Dockerfile that is provided by Quarkus 2.13 has changed. I'm trying the new version to check whether this issue with OpenShift is gone. |
I confirmed that the new Dockerfile is now working in both K8s and OpenShift environments. It was fixed by c24179a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This commit fixes several issues when using the
quarkus-openshift
extension:When providing the registry using the property
quarkus.container-image.image
(for example, quay.io/user/app:version, the registry isquay.io
), the extensionquarkus-openshift
ignores the registry and uses the fallback property which isdocker.io
.The
quarkus-openshift
extension always creates the ImageStream resource regardless of the container image builder used (s2i, docker, jib, ...). However, when the user provides a docker image, it was using it for the container image of the Deployment resource, and this ImageStream was never in use. After these changes, the Deployment resource always uses the ImageStream resource, so no changes in the documentation are necessary.When the user provides a docker image and the deployment kind is "DeploymentConfig" (the default option), the
quarkus-openshift
extension removes the trigger image change params, so when deploying the application, the application is not automatically started.