-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
False
-
None
-
False
-
+
-
-
---
Issue:
Setting quarkus.openshift.arguments in native mode iff entrypoint is not set nor overriden by quarkus.openshift.command leads to 'CreateContainerError'. The behavior is nicely explained here.
Tested with OpenShift 4.10 and 4.6, but I suspect the same behavior will affect Kubernetes. Tested both with 2.7.5.CR1 and upstream. Tested with Docker container runtime.
Imho problem lays in 'io.quarkus.container.image.openshift.deployment.OpenshiftProcessor#openshiftRequirementsNative' as after reading this method I found easy workaround - just set 'quarkus.openshift.command' to entrypoint and the problem's fixed. Thus for default 'io.quarkus.container.image.openshift.deployment.OpenshiftBaseNativeImage#QUARKUS' set 'quarkus.openshift.command=/home/quarkus/application'.
Expected behavior:
'quarkus.openshift.arguments' in native mode are passed to app and container starts.