snowdrop-zen / quarkus

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

Kubernetes env vars generation changed unexpectedly #100

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

Describe the bug I have these lines in my 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:

        - 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:

  1. Add quarkus-openshift.
  2. Add configuration per above to application.properties.
  3. mvn clean package
  4. See target/kubernetes/openshift.yml

Configuration See above.

Environment (please complete the following information):

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$