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 validatedKubernetesEnvBuildItem
once all of them have been processed.(package private) void
process(KubernetesEnvBuildItem item)
Processes the specifiedKubernetesEnvBuildItem
to check whether it's valid with respect to the set of already known configuration, accumulating errors or outputting warnings if needed.(package private) void
process(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 specifiedKubernetesEnvBuildItem
to check whether it's valid with respect to the set of already known configuration, accumulating errors or outputting warnings if needed.- Parameters:
item
- theKubernetesEnvBuildItem
to validate
-
getBuildItems
Collection<KubernetesEnvBuildItem> getBuildItems()
Retrieves a collection of validatedKubernetesEnvBuildItem
once all of them have been processed.- Returns:
- a collection of validated
KubernetesEnvBuildItem
- Throws:
IllegalArgumentException
- if the processed items result in an invalid configuration
-
-