Package kubevirt.io
Class V1PodAffinityTerm
java.lang.Object
kubevirt.io.V1PodAffinityTerm
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1PodAffinityTerm
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNamespacesItem(String namespacesItem) booleanA label query over a set of resources, in this case pods.namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"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()labelSelector(V1LabelSelector labelSelector) namespaces(List<String> namespaces) voidsetLabelSelector(V1LabelSelector labelSelector) voidsetNamespaces(List<String> namespaces) voidsetTopologyKey(String topologyKey) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).topologyKey(String topologyKey) toString()
-
Field Details
-
labelSelector
-
namespaces
-
topologyKey
-
-
Constructor Details
-
V1PodAffinityTerm
public V1PodAffinityTerm()
-
-
Method Details
-
labelSelector
-
getLabelSelector
A label query over a set of resources, in this case pods.- Returns:
- labelSelector
-
setLabelSelector
-
namespaces
-
addNamespacesItem
-
getNamespaces
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"- Returns:
- namespaces
-
setNamespaces
-
topologyKey
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-