Package org.cdk8s.plus25.k8s
Interface NodeSelectorRequirement
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NodeSelectorRequirement.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.751Z") @Stability(Stable) public interface NodeSelectorRequirement extends software.amazon.jsii.JsiiSerializable
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNodeSelectorRequirement.BuilderA builder forNodeSelectorRequirementstatic classNodeSelectorRequirement.Jsii$ProxyAn implementation forNodeSelectorRequirement
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static NodeSelectorRequirement.Builderbuilder()StringgetKey()The label key that the selector applies to.StringgetOperator()Represents a key's relationship to a set of values.default List<String>getValues()An array of string values.
-
-
-
Method Detail
-
getKey
@Stability(Stable) @NotNull String getKey()
The label key that the selector applies to.
-
getOperator
@Stability(Stable) @NotNull String getOperator()
Represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
getValues
@Stability(Stable) @Nullable default List<String> getValues()
An array of string values.If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
builder
@Stability(Stable) static NodeSelectorRequirement.Builder builder()
- Returns:
- a
NodeSelectorRequirement.BuilderofNodeSelectorRequirement
-
-