Closed snowdrop-bot closed 4 years ago
Describe the bug Exporting secrets as environment variables as described by Deploying to OpenShift guide does not work on OCP 3.11.
The same feature works correctly on OCP 4.x.
Expected behavior Secrets should be present in environment variables specified by the property name.
Actual behavior Environment variables are not available in deployment pods on OCP 3.11.
To Reproduce Steps to reproduce the behavior:
oc login
cd quarkus/getting-started/
oc apply -f src/main/resources/secret.yaml
mvn clean package
application.properties
DB_DATABASE=postgresql
Configuration
quarkus.openshift.expose=true quarkus.kubernetes-client.trust-certs=true quarkus.s2i.base-jvm-image=registry.access.redhat.com/openjdk/openjdk-11-rhel7 quarkus.openshift.env-vars.DB_DATABASE.secret=postgresql quarkus.openshift.env-vars.DB_DATABASE.value=database quarkus.openshift.env-vars.DB_USERNAME.secret=postgresql quarkus.openshift.env-vars.DB_USERNAME.value=username quarkus.openshift.env-vars.DB_PASSWORD.secret=postgresql quarkus.openshift.env-vars.DB_PASSWORD.value=password
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
ver
Linux tigris 5.6.13-300.fc32.x86_64 #1 SMP Thu May 14 22:51:37 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
java -version
openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
N/A
mvnw --version
gradlew --version
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
Additional context (Add any other context about the problem here.)
https://github.com/quarkusio/quarkus/issues/9561
$upstream:9561$
Status update: Fix has been merged on 1.3. We also need to check and apply on master if that makes sense.
Describe the bug Exporting secrets as environment variables as described by Deploying to OpenShift guide does not work on OCP 3.11.
The same feature works correctly on OCP 4.x.
Expected behavior Secrets should be present in environment variables specified by the property name.
Actual behavior Environment variables are not available in deployment pods on OCP 3.11.
To Reproduce Steps to reproduce the behavior:
oc login
to OCP 3.11cd quarkus/getting-started/
oc apply -f src/main/resources/secret.yaml
mvn clean package
application.properties
file, e. g.DB_DATABASE=postgresql
Configuration
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
:Linux tigris 5.6.13-300.fc32.x86_64 #1 SMP Thu May 14 22:51:37 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
java -version
:N/A
mvnw --version
orgradlew --version
):Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
Additional context (Add any other context about the problem here.)
https://github.com/quarkusio/quarkus/issues/9561
$upstream:9561$