Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1PodAffinityTerm
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1PodAffinityTerm
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1PodAffinityTerm extends Object
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LABEL_SELECTORstatic StringJSON_PROPERTY_NAMESPACESstatic StringJSON_PROPERTY_TOPOLOGY_KEY
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1PodAffinityTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoreV1PodAffinityTermaddNamespacesItem(String namespacesItem)booleanequals(Object o)IoK8sApimachineryPkgApisMetaV1LabelSelectorgetLabelSelector()Get labelSelectorList<String>getNamespaces()namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"StringgetTopologyKey()This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running.inthashCode()IoK8sApiCoreV1PodAffinityTermlabelSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector labelSelector)IoK8sApiCoreV1PodAffinityTermnamespaces(List<String> namespaces)voidsetLabelSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector labelSelector)voidsetNamespaces(List<String> namespaces)voidsetTopologyKey(String topologyKey)IoK8sApiCoreV1PodAffinityTermtopologyKey(String topologyKey)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LABEL_SELECTOR
public static final String JSON_PROPERTY_LABEL_SELECTOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAMESPACES
public static final String JSON_PROPERTY_NAMESPACES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOPOLOGY_KEY
public static final String JSON_PROPERTY_TOPOLOGY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
labelSelector
public IoK8sApiCoreV1PodAffinityTerm labelSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector labelSelector)
-
getLabelSelector
@Nullable public IoK8sApimachineryPkgApisMetaV1LabelSelector getLabelSelector()
Get labelSelector- Returns:
- labelSelector
-
setLabelSelector
public void setLabelSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector labelSelector)
-
namespaces
public IoK8sApiCoreV1PodAffinityTerm namespaces(List<String> namespaces)
-
addNamespacesItem
public IoK8sApiCoreV1PodAffinityTerm addNamespacesItem(String namespacesItem)
-
getNamespaces
@Nullable public List<String> getNamespaces()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"- Returns:
- namespaces
-
topologyKey
public IoK8sApiCoreV1PodAffinityTerm topologyKey(String topologyKey)
-
getTopologyKey
public String getTopologyKey()
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.- Returns:
- topologyKey
-
setTopologyKey
public void setTopologyKey(String topologyKey)
-
-