public class V1PodAffinityTerm extends Object
Constructor and Description |
---|
V1PodAffinityTerm() |
Modifier and Type | Method and Description |
---|---|
V1PodAffinityTerm |
addNamespacesItem(String namespacesItem) |
boolean |
equals(Object o) |
V1LabelSelector |
getLabelSelector()
A label query over a set of resources, in this case pods.
|
List<String> |
getNamespaces()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"
|
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.
|
int |
hashCode() |
V1PodAffinityTerm |
labelSelector(V1LabelSelector labelSelector) |
V1PodAffinityTerm |
namespaces(List<String> namespaces) |
void |
setLabelSelector(V1LabelSelector labelSelector) |
void |
setNamespaces(List<String> namespaces) |
void |
setTopologyKey(String topologyKey) |
V1PodAffinityTerm |
topologyKey(String topologyKey) |
String |
toString() |
public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector)
public V1LabelSelector getLabelSelector()
public void setLabelSelector(V1LabelSelector labelSelector)
public V1PodAffinityTerm namespaces(List<String> namespaces)
public V1PodAffinityTerm addNamespacesItem(String namespacesItem)
public List<String> getNamespaces()
public V1PodAffinityTerm topologyKey(String topologyKey)
public String getTopologyKey()
public void setTopologyKey(String topologyKey)
Copyright © 2018. All rights reserved.