dev.galasa.kubernetes.internal.properties.KubernetesMaxSlots Maven / Gradle / Ivy
/*
* Licensed Materials - Property of IBM
*
* (c) Copyright IBM Corp. 2020.
*/
package dev.galasa.kubernetes.internal.properties;
import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.kubernetes.KubernetesManagerException;
import dev.galasa.kubernetes.internal.KubernetesClusterImpl;
/**
* Maximum Slots on Cluster CPS Property
*
* @galasa.cps.property
*
* @galasa.name kubernetes.cluster.[XXXX.]max.slots
*
* @galasa.description Specifies the maximum number of slots(namespaces) that can be allocated at one time on the cluster
*
* @galasa.required No
*
* @galasa.default Defaults to 2 if not provided
*
* @galasa.valid_values Integer value. A value <0 disables the cluster.
*
* @galasa.examples
* kubernetes.cluster.K8S.max.slots=5
*
*/
public class KubernetesMaxSlots extends CpsProperties {
public static int get(KubernetesClusterImpl cluster) throws KubernetesManagerException {
return getIntWithDefault(KubernetesPropertiesSingleton.cps(), 2, "cluster", "max.slots", cluster.getId()) ;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy