public class TopologySpreadConstraint extends Object implements KubernetesResource
| Constructor and Description |
|---|
TopologySpreadConstraint()
No args constructor for use in serialization
|
TopologySpreadConstraint(LabelSelector labelSelector,
Integer maxSkew,
Integer minDomains,
String topologyKey,
String whenUnsatisfiable) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAdditionalProperties() |
LabelSelector |
getLabelSelector() |
Integer |
getMaxSkew() |
Integer |
getMinDomains() |
String |
getTopologyKey() |
String |
getWhenUnsatisfiable() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setLabelSelector(LabelSelector labelSelector) |
void |
setMaxSkew(Integer maxSkew) |
void |
setMinDomains(Integer minDomains) |
void |
setTopologyKey(String topologyKey) |
void |
setWhenUnsatisfiable(String whenUnsatisfiable) |
public TopologySpreadConstraint()
public TopologySpreadConstraint(LabelSelector labelSelector, Integer maxSkew, Integer minDomains, String topologyKey, String whenUnsatisfiable)
whenUnsatisfiable - maxSkew - labelSelector - minDomains - topologyKey - public LabelSelector getLabelSelector()
public void setLabelSelector(LabelSelector labelSelector)
public Integer getMaxSkew()
public void setMaxSkew(Integer maxSkew)
public Integer getMinDomains()
public void setMinDomains(Integer minDomains)
public String getTopologyKey()
public void setTopologyKey(String topologyKey)
public String getWhenUnsatisfiable()
public void setWhenUnsatisfiable(String whenUnsatisfiable)
Copyright © 2015–2022 Red Hat. All rights reserved.