A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
| Name | Type | Description | Notes |
|---|---|---|---|
| key | str | The label key that the selector applies to. | |
| operator | str | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | |
| values | List[str] | 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. | [optional] |
from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement
# TODO update the JSON string below
json = "{}"
# create an instance of V1NodeSelectorRequirement from a JSON string
v1_node_selector_requirement_instance = V1NodeSelectorRequirement.from_json(json)
# print the JSON string representation of the object
print(V1NodeSelectorRequirement.to_json())
# convert the object into a dict
v1_node_selector_requirement_dict = v1_node_selector_requirement_instance.to_dict()
# create an instance of V1NodeSelectorRequirement from a dict
v1_node_selector_requirement_from_dict = V1NodeSelectorRequirement.from_dict(v1_node_selector_requirement_dict)