Interface KubernetesConfigSourceConfig


  • @ConfigMapping(prefix="quarkus.kubernetes-config")
    @ConfigRoot(phase=RUN_TIME)
    public interface KubernetesConfigSourceConfig
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<List<String>> configMaps()
      ConfigMaps to look for in the namespace that the Kubernetes Client has been configured for.
      boolean enabled()
      If set to true, the application will attempt to look up the configuration from the API server
      boolean failOnMissingConfig()
      If set to true, the application will not start if any of the configured config sources cannot be located
      Optional<String> namespace()
      Namespace to look for config maps and secrets.
      Optional<List<String>> secrets()
      Secrets to look for in the namespace that the Kubernetes Client has been configured for.
    • Method Detail

      • enabled

        @WithDefault("false")
        boolean enabled()
        If set to true, the application will attempt to look up the configuration from the API server
      • failOnMissingConfig

        @WithDefault("true")
        boolean failOnMissingConfig()
        If set to true, the application will not start if any of the configured config sources cannot be located
      • configMaps

        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 in secrets, will have higher priorities than all ConfigMaps.
      • secrets

        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 enable quarkus.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 in configMaps.
      • namespace

        Optional<String> namespace()
        Namespace to look for config maps and secrets. If this is not specified, then the namespace configured in the kubectl config context is used. If the value is specified and the namespace doesn't exist, the application will fail to start.