Closed snowdrop-bot closed 4 years ago
Describe the bug I have these lines in my application.properties:
application.properties
quarkus.openshift.env-vars.DB_DATABASE.secret=postgresql quarkus.openshift.env-vars.DB_DATABASE.value=database
And I expect Quarkus Kubernetes to generate an env var that corresponds to the database field of the postgresql secret. This is how it works in Quarkus 1.3.3, at least:
database
postgresql
- name: "DB_DATABASE" valueFrom: secretKeyRef: key: "database" name: "postgresql" optional: false
However, when trying on Quarkus 1.5.0.CR1, I only get this:
- name: "DB_DATABASE" value: "database"
Expected behavior See above.
Actual behavior See above.
To Reproduce Steps to reproduce the behavior:
quarkus-openshift
mvn clean package
target/kubernetes/openshift.yml
Configuration See above.
Environment (please complete the following information):
uname -a
ver
lthon@argondie:~$ uname -a Linux argondie 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
java -version
lthon@argondie:~$ java -version openjdk version "1.8.0_252" OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09) OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
mvnw --version
gradlew --version
lthon@argondie:~$ mvn --version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /home/lthon/software/apache-maven Java version: 1.8.0_252, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre Default locale: cs_CZ, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-101-generic", arch: "amd64", family: "unix"
Additional context See also https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Kubernetes.20env.20vars
https://github.com/quarkusio/quarkus/issues/9629
$upstream:9629$
Describe the bug I have these lines in my
application.properties
:And I expect Quarkus Kubernetes to generate an env var that corresponds to the
database
field of thepostgresql
secret. This is how it works in Quarkus 1.3.3, at least:However, when trying on Quarkus 1.5.0.CR1, I only get this:
Expected behavior See above.
Actual behavior See above.
To Reproduce Steps to reproduce the behavior:
quarkus-openshift
.application.properties
.mvn clean package
target/kubernetes/openshift.yml
Configuration See above.
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):Additional context See also https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Kubernetes.20env.20vars
https://github.com/quarkusio/quarkus/issues/9629
$upstream:9629$