Package k8s.io.api.core.v1
Class Generated.PodAffinityTerm
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.PodAffinityTerm
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.PodAffinityTermOrBuilder
- Enclosing class:
- Generated
public static final class Generated.PodAffinityTerm extends com.google.protobuf.GeneratedMessageV3 implements Generated.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> matches that of any node on which a pod of the set of pods is running
Protobuf typek8s.io.api.core.v1.PodAffinityTerm- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.PodAffinityTerm.BuilderDefines 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-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intLABELSELECTOR_FIELD_NUMBERstatic intMATCHLABELKEYS_FIELD_NUMBERstatic intMISMATCHLABELKEYS_FIELD_NUMBERstatic intNAMESPACES_FIELD_NUMBERstatic intNAMESPACESELECTOR_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.PodAffinityTerm>PARSERDeprecated.static intTOPOLOGYKEY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Generated.PodAffinityTermgetDefaultInstance()Generated.PodAffinityTermgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Generated.LabelSelectorgetLabelSelector()A label query over a set of resources, in this case pods.Generated.LabelSelectorOrBuildergetLabelSelectorOrBuilder()A label query over a set of resources, in this case pods.StringgetMatchLabelKeys(int index)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ByteStringgetMatchLabelKeysBytes(int index)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.intgetMatchLabelKeysCount()MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ProtocolStringListgetMatchLabelKeysList()MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.StringgetMismatchLabelKeys(int index)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ByteStringgetMismatchLabelKeysBytes(int index)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.intgetMismatchLabelKeysCount()MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ProtocolStringListgetMismatchLabelKeysList()MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.StringgetNamespaces(int index)namespaces specifies a static list of namespace names that the term applies to.com.google.protobuf.ByteStringgetNamespacesBytes(int index)namespaces specifies a static list of namespace names that the term applies to.intgetNamespacesCount()namespaces specifies a static list of namespace names that the term applies to.Generated.LabelSelectorgetNamespaceSelector()A label query over the set of namespaces that the term applies to.Generated.LabelSelectorOrBuildergetNamespaceSelectorOrBuilder()A label query over the set of namespaces that the term applies to.com.google.protobuf.ProtocolStringListgetNamespacesList()namespaces specifies a static list of namespace names that the term applies to.com.google.protobuf.Parser<Generated.PodAffinityTerm>getParserForType()intgetSerializedSize()StringgetTopologyKey()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.ByteStringgetTopologyKeyBytes()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()booleanhasLabelSelector()A label query over a set of resources, in this case pods.booleanhasNamespaceSelector()A label query over the set of namespaces that the term applies to.booleanhasTopologyKey()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.PodAffinityTerm.BuildernewBuilder()static Generated.PodAffinityTerm.BuildernewBuilder(Generated.PodAffinityTerm prototype)Generated.PodAffinityTerm.BuildernewBuilderForType()protected Generated.PodAffinityTerm.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.PodAffinityTermparseDelimitedFrom(InputStream input)static Generated.PodAffinityTermparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodAffinityTermparseFrom(byte[] data)static Generated.PodAffinityTermparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodAffinityTermparseFrom(com.google.protobuf.ByteString data)static Generated.PodAffinityTermparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodAffinityTermparseFrom(com.google.protobuf.CodedInputStream input)static Generated.PodAffinityTermparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodAffinityTermparseFrom(InputStream input)static Generated.PodAffinityTermparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodAffinityTermparseFrom(ByteBuffer data)static Generated.PodAffinityTermparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.PodAffinityTerm>parser()Generated.PodAffinityTerm.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LABELSELECTOR_FIELD_NUMBER
public static final int LABELSELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAMESPACES_FIELD_NUMBER
public static final int NAMESPACES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOPOLOGYKEY_FIELD_NUMBER
public static final int TOPOLOGYKEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAMESPACESELECTOR_FIELD_NUMBER
public static final int NAMESPACESELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MATCHLABELKEYS_FIELD_NUMBER
public static final int MATCHLABELKEYS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MISMATCHLABELKEYS_FIELD_NUMBER
public static final int MISMATCHLABELKEYS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.PodAffinityTerm> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasLabelSelector
public boolean hasLabelSelector()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;- Specified by:
hasLabelSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- Whether the labelSelector field is set.
-
getLabelSelector
public Generated.LabelSelector getLabelSelector()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;- Specified by:
getLabelSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The labelSelector.
-
getLabelSelectorOrBuilder
public Generated.LabelSelectorOrBuilder getLabelSelectorOrBuilder()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;- Specified by:
getLabelSelectorOrBuilderin interfaceGenerated.PodAffinityTermOrBuilder
-
getNamespacesList
public com.google.protobuf.ProtocolStringList getNamespacesList()
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesListin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- A list containing the namespaces.
-
getNamespacesCount
public int getNamespacesCount()
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesCountin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The count of namespaces.
-
getNamespaces
public String getNamespaces(int index)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The namespaces at the given index.
-
getNamespacesBytes
public com.google.protobuf.ByteString getNamespacesBytes(int index)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesBytesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the namespaces at the given index.
-
hasTopologyKey
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. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Specified by:
hasTopologyKeyin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- Whether the topologyKey field is set.
-
getTopologyKey
public 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. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Specified by:
getTopologyKeyin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The topologyKey.
-
getTopologyKeyBytes
public 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. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Specified by:
getTopologyKeyBytesin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The bytes for topologyKey.
-
hasNamespaceSelector
public boolean hasNamespaceSelector()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
hasNamespaceSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- Whether the namespaceSelector field is set.
-
getNamespaceSelector
public Generated.LabelSelector getNamespaceSelector()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
getNamespaceSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The namespaceSelector.
-
getNamespaceSelectorOrBuilder
public Generated.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
getNamespaceSelectorOrBuilderin interfaceGenerated.PodAffinityTermOrBuilder
-
getMatchLabelKeysList
public com.google.protobuf.ProtocolStringList getMatchLabelKeysList()
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysListin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- A list containing the matchLabelKeys.
-
getMatchLabelKeysCount
public int getMatchLabelKeysCount()
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysCountin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The count of matchLabelKeys.
-
getMatchLabelKeys
public String getMatchLabelKeys(int index)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The matchLabelKeys at the given index.
-
getMatchLabelKeysBytes
public com.google.protobuf.ByteString getMatchLabelKeysBytes(int index)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysBytesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchLabelKeys at the given index.
-
getMismatchLabelKeysList
public com.google.protobuf.ProtocolStringList getMismatchLabelKeysList()
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysListin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- A list containing the mismatchLabelKeys.
-
getMismatchLabelKeysCount
public int getMismatchLabelKeysCount()
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysCountin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The count of mismatchLabelKeys.
-
getMismatchLabelKeys
public String getMismatchLabelKeys(int index)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The mismatchLabelKeys at the given index.
-
getMismatchLabelKeysBytes
public com.google.protobuf.ByteString getMismatchLabelKeysBytes(int index)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysBytesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mismatchLabelKeys at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PodAffinityTerm parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PodAffinityTerm parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PodAffinityTerm parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.PodAffinityTerm.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.PodAffinityTerm.Builder newBuilder()
-
newBuilder
public static Generated.PodAffinityTerm.Builder newBuilder(Generated.PodAffinityTerm prototype)
-
toBuilder
public Generated.PodAffinityTerm.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.PodAffinityTerm.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.PodAffinityTerm getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.PodAffinityTerm> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.PodAffinityTerm> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.PodAffinityTerm getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-