public static interface V1.PodAffinityTermOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Meta.LabelSelector |
getLabelSelector()
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 a static list of namespace names that the term applies to.
|
com.google.protobuf.ByteString |
getNamespacesBytes(int index)
namespaces specifies a static list of namespace names that the term applies to.
|
int |
getNamespacesCount()
namespaces specifies a static list of namespace names that the term applies to.
|
Meta.LabelSelector |
getNamespaceSelector()
A label query over the set of namespaces that the term applies to.
|
Meta.LabelSelectorOrBuilder |
getNamespaceSelectorOrBuilder()
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.
|
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 |
hasNamespaceSelector()
A label query over the set of namespaces that the term applies to.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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;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;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;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
repeated string namespaces = 2;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
repeated string namespaces = 2;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
repeated string namespaces = 2;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
repeated string namespaces = 2;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;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;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;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.
This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
+optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
Meta.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.
This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
+optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
Meta.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.
This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
+optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
Copyright © 2023. All rights reserved.