Package io.quarkus.kubernetes.deployment
Interface EnvVarHolder
-
- All Known Subinterfaces:
PlatformConfiguration
- All Known Implementing Classes:
ContainerConfig,KnativeConfig,KubernetesConfig,OpenshiftConfig
public interface EnvVarHolderCommon interface for configuration entities holding environment variables meant to be injected into containers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default Collection<KubernetesEnvBuildItem>convertToBuildItems()Converts the environment variable configuration held by this EnvVarHolder (as returned bygetEnv()andgetEnvVars()) into a collection of associatedKubernetesEnvBuildItem.EnvVarsConfiggetEnv()Retrieves the definition of environment variables to add to the application's container.Map<String,EnvConfig>getEnvVars()Deprecated.usegetEnv()insteadStringgetTargetPlatformName()Specifies which the name of the platform this EnvVarHolder targets.
-
-
-
Method Detail
-
getEnv
EnvVarsConfig getEnv()
Retrieves the definition of environment variables to add to the application's container.- Returns:
- the associated
EnvVarsConfigholding the definition of which environment variables to add
-
getEnvVars
@Deprecated Map<String,EnvConfig> getEnvVars()
Deprecated.usegetEnv()instead
-
getTargetPlatformName
String getTargetPlatformName()
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<KubernetesEnvBuildItem> convertToBuildItems()
Converts the environment variable configuration held by this EnvVarHolder (as returned bygetEnv()andgetEnvVars()) into a collection of associatedKubernetesEnvBuildItem.- Returns:
- a collection of
KubernetesEnvBuildItemcorresponding to the environment variable configurations
-
-