Class KubernetesConfigSourceConfig
- java.lang.Object
-
- io.quarkus.kubernetes.client.runtime.KubernetesConfigSourceConfig
-
@ConfigRoot(name="kubernetes-config", phase=BOOTSTRAP) public class KubernetesConfigSourceConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<List<String>>configMapsConfigMaps to look for in the namespace that the Kubernetes Client has been configured for.booleanenabledIf set to true, the application will attempt to look up the configuration from the API serverbooleanfailOnMissingConfigIf set to true, the application will not start if any of the configured config sources cannot be locatedOptional<String>namespaceNamespace to look for config maps and secrets.Optional<List<String>>secretsSecrets to look for in the namespace that the Kubernetes Client has been configured for.
-
Constructor Summary
Constructors Constructor Description KubernetesConfigSourceConfig()
-
-
-
Field Detail
-
enabled
@ConfigItem(defaultValue="false") public boolean enabled
If set to true, the application will attempt to look up the configuration from the API server
-
failOnMissingConfig
@ConfigItem(defaultValue="true") public boolean failOnMissingConfig
If set to true, the application will not start if any of the configured config sources cannot be located
-
configMaps
@ConfigItem public Optional<List<String>> configMaps
ConfigMaps to look for in the namespace that the Kubernetes Client has been configured for. ConfigMaps defined later in this list have a higher priority that ConfigMaps defined earlier in this list. Furthermore any Secrets defined insecrets, will have higher priorities than all ConfigMaps.
-
secrets
@ConfigItem public Optional<List<String>> secrets
Secrets to look for in the namespace that the Kubernetes Client has been configured for. If you use this, you probably want to enablequarkus.kubernetes-config.secrets.enabled. Secrets defined later in this list have a higher priority that ConfigMaps defined earlier in this list. Furthermore these Secrets have a higher priorities than all ConfigMaps defined inconfigMaps.
-
-