public static final class V1.PodAffinityTerm.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder> implements V1.PodAffinityTermOrBuilder
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> tches that of any node on which a pod of the set of pods is runningProtobuf type
k8s.io.api.core.v1.PodAffinityTerm| Modifier and Type | Method and Description |
|---|---|
V1.PodAffinityTerm.Builder |
addAllNamespaces(Iterable<String> values)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
V1.PodAffinityTerm.Builder |
addNamespaces(String value)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
V1.PodAffinityTerm.Builder |
addNamespacesBytes(com.google.protobuf.ByteString value)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
V1.PodAffinityTerm.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.PodAffinityTerm |
build() |
V1.PodAffinityTerm |
buildPartial() |
V1.PodAffinityTerm.Builder |
clear() |
V1.PodAffinityTerm.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.PodAffinityTerm.Builder |
clearLabelSelector()
A label query over a set of resources, in this case pods.
|
V1.PodAffinityTerm.Builder |
clearNamespaces()
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
V1.PodAffinityTerm.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.PodAffinityTerm.Builder |
clearTopologyKey()
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.
|
V1.PodAffinityTerm.Builder |
clone() |
V1.PodAffinityTerm |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Meta.LabelSelector |
getLabelSelector()
A label query over a set of resources, in this case pods.
|
Meta.LabelSelector.Builder |
getLabelSelectorBuilder()
A label query over a set of resources, in this case pods.
|
Meta.LabelSelectorOrBuilder |
getLabelSelectorOrBuilder()
A label query over a set of resources, in this case pods.
|
String |
getNamespaces(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
com.google.protobuf.ByteString |
getNamespacesBytes(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
int |
getNamespacesCount()
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
com.google.protobuf.ProtocolStringList |
getNamespacesList()
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.
|
com.google.protobuf.ByteString |
getTopologyKeyBytes()
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.
|
boolean |
hasLabelSelector()
A label query over a set of resources, in this case pods.
|
boolean |
hasTopologyKey()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.PodAffinityTerm.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.PodAffinityTerm.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.PodAffinityTerm.Builder |
mergeFrom(V1.PodAffinityTerm other) |
V1.PodAffinityTerm.Builder |
mergeLabelSelector(Meta.LabelSelector value)
A label query over a set of resources, in this case pods.
|
V1.PodAffinityTerm.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.PodAffinityTerm.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.PodAffinityTerm.Builder |
setLabelSelector(Meta.LabelSelector.Builder builderForValue)
A label query over a set of resources, in this case pods.
|
V1.PodAffinityTerm.Builder |
setLabelSelector(Meta.LabelSelector value)
A label query over a set of resources, in this case pods.
|
V1.PodAffinityTerm.Builder |
setNamespaces(int index,
String value)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
V1.PodAffinityTerm.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.PodAffinityTerm.Builder |
setTopologyKey(String value)
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.
|
V1.PodAffinityTerm.Builder |
setTopologyKeyBytes(com.google.protobuf.ByteString value)
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.
|
V1.PodAffinityTerm.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.PodAffinityTerm build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.PodAffinityTerm buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.PodAffinityTerm.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder mergeFrom(V1.PodAffinityTerm other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public V1.PodAffinityTerm.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PodAffinityTerm.Builder>IOExceptionpublic boolean hasLabelSelector()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;hasLabelSelector in interface V1.PodAffinityTermOrBuilderpublic Meta.LabelSelector getLabelSelector()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;getLabelSelector in interface V1.PodAffinityTermOrBuilderpublic V1.PodAffinityTerm.Builder setLabelSelector(Meta.LabelSelector value)
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;public V1.PodAffinityTerm.Builder setLabelSelector(Meta.LabelSelector.Builder builderForValue)
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;public V1.PodAffinityTerm.Builder mergeLabelSelector(Meta.LabelSelector value)
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;public V1.PodAffinityTerm.Builder clearLabelSelector()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;public Meta.LabelSelector.Builder getLabelSelectorBuilder()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;public Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;getLabelSelectorOrBuilder in interface V1.PodAffinityTermOrBuilderpublic com.google.protobuf.ProtocolStringList getNamespacesList()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;getNamespacesList in interface V1.PodAffinityTermOrBuilderpublic int getNamespacesCount()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;getNamespacesCount in interface V1.PodAffinityTermOrBuilderpublic String getNamespaces(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;getNamespaces in interface V1.PodAffinityTermOrBuilderpublic com.google.protobuf.ByteString getNamespacesBytes(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;getNamespacesBytes in interface V1.PodAffinityTermOrBuilderpublic V1.PodAffinityTerm.Builder setNamespaces(int index, String value)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;public V1.PodAffinityTerm.Builder addNamespaces(String value)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;public V1.PodAffinityTerm.Builder addAllNamespaces(Iterable<String> values)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;public V1.PodAffinityTerm.Builder clearNamespaces()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;public V1.PodAffinityTerm.Builder addNamespacesBytes(com.google.protobuf.ByteString value)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;public boolean hasTopologyKey()
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;hasTopologyKey in interface V1.PodAffinityTermOrBuilderpublic 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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;getTopologyKey in interface V1.PodAffinityTermOrBuilderpublic com.google.protobuf.ByteString getTopologyKeyBytes()
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;getTopologyKeyBytes in interface V1.PodAffinityTermOrBuilderpublic V1.PodAffinityTerm.Builder setTopologyKey(String value)
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;public V1.PodAffinityTerm.Builder clearTopologyKey()
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;public V1.PodAffinityTerm.Builder setTopologyKeyBytes(com.google.protobuf.ByteString value)
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;public final V1.PodAffinityTerm.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>public final V1.PodAffinityTerm.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>Copyright © 2018. All rights reserved.