dev.galasa.kubernetes.internal.properties.KubernetesNamespaces Maven / Gradle / Ivy
/*
* Licensed Materials - Property of IBM
*
* (c) Copyright IBM Corp. 2020.
*/
package dev.galasa.kubernetes.internal.properties;
import java.util.List;
import javax.validation.constraints.NotNull;
import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.kubernetes.KubernetesManagerException;
import dev.galasa.kubernetes.internal.KubernetesClusterImpl;
/**
* Kubernetes Namespace IDs CPS Property
*
* @galasa.cps.property
*
* @galasa.name kubernetes.cluster.[XXXX.]namespaces
*
* @galasa.description Provides a comma separated list of the namespaces that are available on the cluster
*
* @galasa.required No
*
* @galasa.default Defaults to galasa{1-2} if not provided
*
* @galasa.valid_values A comma separated list of valid Kubernetes namespaces with resource pooling expanders
*
* @galasa.examples
* kubernetes.cluster.K8S.namespaces=galasa1,galasa{2-9}
* kubebernetes.cluster.namespaces=bob1,bob2,bob3
*
*/
public class KubernetesNamespaces extends CpsProperties {
public static @NotNull List get(KubernetesClusterImpl cluster) throws KubernetesManagerException {
return getStringListWithDefault(KubernetesPropertiesSingleton.cps(), "galasa{1-2}", "cluster", "namespaces", cluster.getId()) ;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy