snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

configMap configured in quarkus.openshift properties does not get picked up by Quarkus application #245

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Describe the bug configMap configured in quarkus.openshift according to Quarkus - Deploying on OpenShift does not get properly recognised by a Quarkus application. This approach worked in 1.7, therefore this is a breaking change.

With Quarkus 1.7, using the properties from docs was sufficient for a RESTful Quarkus application to pick up configMaps:

quarkus.openshift.config-map-volumes.app-config.config-map-name=app-config
quarkus.openshift.mounts.app-config.path=/deployments/config

It seems that with Quarkus 1.11, a new property is required:

quarkus.openshift.env.vars.smallrye-config-locations=/deployments/config

Expected behavior configMap is picked up by application deployed to OpenShift.

Actual behavior configMap is not picked up by application deployed to OpenShift.

To Reproduce

  1. Clone https://github.com/quarkus-qe/quarkus-openshift-test-suite
  2. Run configMap tests to reproduce the issue:
    mvn -B -V clean verify -pl app-metadata/deployment,app-metadata/runtime,common,configmap/file-system
  3. Add quarkus.openshift.env.vars.smallrye-config-locations=/deployments/config to config-secret/file-system/src/main/resources/application.properties. Rerun test for workaround.

Configuration

quarkus.openshift.expose=true
quarkus.openshift.config-map-volumes.app-config.config-map-name=app-config
quarkus.openshift.mounts.app-config.path=/deployments/config
quarkus.s2i.base-jvm-image=registry.access.redhat.com/ubi8/openjdk-11:latest

Screenshots N/A

Environment (please complete the following information):

Additional context (Add any other context about the problem here.)


https://github.com/quarkusio/quarkus/issues/14525


$upstream:14525$