Class KubernetesEnvironmentPropertySource

  • All Implemented Interfaces:
    PropertySource, io.micronaut.core.order.Ordered, java.lang.Iterable<java.lang.String>

    public class KubernetesEnvironmentPropertySource
    extends MapPropertySource
    A property source specific for the Kubernetes environment. It excludes Kubernetes-specific environment variables (like FOO_SERVICE_HOST, FOO_SERVICE_PORT, etc) since they would slow down application startup
    Since:
    2.3.0
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The name of this property source.
        See Also:
        Constant Field Values
    • Constructor Detail

      • KubernetesEnvironmentPropertySource

        public KubernetesEnvironmentPropertySource()
        Default constructor.
      • KubernetesEnvironmentPropertySource

        public KubernetesEnvironmentPropertySource​(@Nullable
                                                   java.util.List<java.lang.String> includes,
                                                   @Nullable
                                                   java.util.List<java.lang.String> excludes)
        Allows for control over which environment variables are included.
        Parameters:
        includes - The environment variables to include in configuration
        excludes - The environment variables to exclude from configuration
    • Method Detail

      • getOrder

        public int getOrder()