Package k8s.io.api.core.v1
Interface Generated.PodAffinityTermOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.PodAffinityTerm,Generated.PodAffinityTerm.Builder
- Enclosing class:
- Generated
public static interface Generated.PodAffinityTermOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.List<String>getMatchLabelKeysList()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.List<String>getMismatchLabelKeysList()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.List<String>getNamespacesList()namespaces specifies a static list of namespace names that the term applies to.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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasLabelSelector
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;- Returns:
- Whether the labelSelector field is set.
-
getLabelSelector
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;- Returns:
- The labelSelector.
-
getLabelSelectorOrBuilder
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;
-
getNamespacesList
List<String> 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;- Returns:
- A list containing the namespaces.
-
getNamespacesCount
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;- Returns:
- The count of namespaces.
-
getNamespaces
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;- Parameters:
index- The index of the element to return.- Returns:
- The namespaces at the given index.
-
getNamespacesBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the namespaces at the given index.
-
hasTopologyKey
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;- Returns:
- Whether the topologyKey field is set.
-
getTopologyKey
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;- Returns:
- The topologyKey.
-
getTopologyKeyBytes
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;- Returns:
- The bytes for topologyKey.
-
hasNamespaceSelector
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;- Returns:
- Whether the namespaceSelector field is set.
-
getNamespaceSelector
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;- Returns:
- The namespaceSelector.
-
getNamespaceSelectorOrBuilder
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;
-
getMatchLabelKeysList
List<String> 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;- Returns:
- A list containing the matchLabelKeys.
-
getMatchLabelKeysCount
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;- Returns:
- The count of matchLabelKeys.
-
getMatchLabelKeys
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;- Parameters:
index- The index of the element to return.- Returns:
- The matchLabelKeys at the given index.
-
getMatchLabelKeysBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchLabelKeys at the given index.
-
getMismatchLabelKeysList
List<String> 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;- Returns:
- A list containing the mismatchLabelKeys.
-
getMismatchLabelKeysCount
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;- Returns:
- The count of mismatchLabelKeys.
-
getMismatchLabelKeys
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;- Parameters:
index- The index of the element to return.- Returns:
- The mismatchLabelKeys at the given index.
-
getMismatchLabelKeysBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mismatchLabelKeys at the given index.
-
-