Interface EnvVarHolder

All Known Subinterfaces:
ContainerConfig, KnativeConfig, KubernetesConfig, OpenShiftConfig, PlatformConfiguration

public interface EnvVarHolder
Common interface for configuration entities holding environment variables meant to be injected into containers.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Collection<io.quarkus.kubernetes.spi.KubernetesEnvBuildItem>
    Converts the environment variable configuration held by this EnvVarHolder (as returned by env()) into a collection of associated KubernetesEnvBuildItem.
    env()
    Retrieves the definition of environment variables to add to the application's container.
    default String
    Specifies which the name of the platform this EnvVarHolder targets.
  • Method Details

    • env

      Retrieves the definition of environment variables to add to the application's container.
    • targetPlatformName

      default String targetPlatformName()
      Specifies which the name of the platform this EnvVarHolder targets. This name, when needed, is used by dekorate to generate the descriptor associated with the targeted deployment platform.
      Returns:
      the name of the targeted platform e.g. Constants.KUBERNETES
    • convertToBuildItems

      default Collection<io.quarkus.kubernetes.spi.KubernetesEnvBuildItem> convertToBuildItems()
      Converts the environment variable configuration held by this EnvVarHolder (as returned by env()) into a collection of associated KubernetesEnvBuildItem.
      Returns:
      a collection of KubernetesEnvBuildItem corresponding to the environment variable configurations