Package io.quarkus.kubernetes.deployment
Class EnvVarValidator
- java.lang.Object
-
- io.quarkus.kubernetes.deployment.EnvVarValidator
-
public class EnvVarValidator extends Object
Validates that the set of provided environment variables is valid.
-
-
Constructor Summary
Constructors Constructor Description EnvVarValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Collection<KubernetesEnvBuildItem>getBuildItems()Retrieves a collection of validatedKubernetesEnvBuildItemonce all of them have been processed.(package private) voidprocess(KubernetesEnvBuildItem item)Processes 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)
-
-
-
Method Detail
-
process
void process(String name, Optional<String> value, Optional<String> secret, Optional<String> configmap, Optional<String> field, String target, boolean... oldStyle)
-
process
void process(KubernetesEnvBuildItem item)
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
-
-