Package io.quarkus.kubernetes.deployment
Class EnvVarValidator
java.lang.Object
io.quarkus.kubernetes.deployment.EnvVarValidator
Validates that the set of provided environment variables is valid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Collection<KubernetesEnvBuildItem>Retrieves a collection of validatedKubernetesEnvBuildItemonce all of them have been processed.(package private) voidProcesses the specifiedKubernetesEnvBuildItemto check whether it's valid with respect to the set of already known configuration, accumulating errors or outputting warnings if needed.(package private) voidprocess(String name, Optional<String> value, Optional<String> secret, Optional<String> configmap, Optional<String> field, String target, boolean... oldStyle)
-
Constructor Details
-
EnvVarValidator
public EnvVarValidator()
-
-
Method Details
-
process
-
process
Processes the specifiedKubernetesEnvBuildItemto check whether it's valid with respect to the set of already known configuration, accumulating errors or outputting warnings if needed.- Parameters:
item- theKubernetesEnvBuildItemto validate
-
getBuildItems
Collection<KubernetesEnvBuildItem> getBuildItems()Retrieves a collection of validatedKubernetesEnvBuildItemonce all of them have been processed.- Returns:
- a collection of validated
KubernetesEnvBuildItem - Throws:
IllegalArgumentException- if the processed items result in an invalid configuration
-