Class TopologyConstraint
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1alpha2.TopologyConstraint
-
- All Implemented Interfaces:
Editable<TopologyConstraintBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TopologyConstraint extends Object implements Editable<TopologyConstraintBuilder>, KubernetesResource
TopologyConstraint defines a topology constraint for a PodGroup.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopologyConstraint()No args constructor for use in serializationTopologyConstraint(String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologyConstraintBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()Key specifies the key of the node label representing the topology domain.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKey(String key)Key specifies the key of the node label representing the topology domain.TopologyConstraintBuildertoBuilder()
-
-
-
Constructor Detail
-
TopologyConstraint
public TopologyConstraint()
No args constructor for use in serialization
-
TopologyConstraint
public TopologyConstraint(String key)
-
-
Method Detail
-
getKey
public String getKey()
Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: "topology.kubernetes.io/rack"
-
setKey
public void setKey(String key)
Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: "topology.kubernetes.io/rack"
-
edit
public TopologyConstraintBuilder edit()
- Specified by:
editin interfaceEditable<TopologyConstraintBuilder>
-
toBuilder
public TopologyConstraintBuilder toBuilder()
-
-