-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes Config Extension: use property names that do not conflict with YAML syntax #35286
Comments
The right YAML file is: quarkus:
kubernetes-config:
enabled: true
namespace: my-namespace
secrets.enabled: true
secrets:
- my-secret An additional |
When using the proposed configuration, the following error occurs: |
This might be an issue with the config yaml extension. @radcortez do you know about it or somebody who might help here? |
Not exactly. Please check #11744. |
Close due to #11744 also closed. |
I think that the original problem got confused with the (incorrect) proposed solution up above. But, the following might work, if I recall correctly how the parsing works: quarkus:
kubernetes-config:
enabled: true
namespace: my-namespace
secrets:
enabled: true
~:
- my-secret |
Description
When using the
kubernetes-config
extension, it is required to configure the propertyquarkus.kubernetes-config.secrets.enabled=true
in order to activate the discovery of secrets and the propertyquarkus.kubernetes-config.secrets
in order to configure which secrets to discover.When using YAML configuration only, this would result in invalid YAML syntax:
In order to avoid that and make the feature work as intended, I currently need to have an additional
application.properties
which specifiesquarkus.kubernetes-config.secrets.enabled=true
next to myapplication.yaml
.Implementation ideas
Use property names that allow to cleanly define a valid
application.yaml
without the need to have an additionalapplication.properties
file.Example:
The text was updated successfully, but these errors were encountered: