NodeSelectorTerm

pydantic model controller.models.domain.kubernetes.NodeSelectorTerm

Term to match nodes.

Parameters:

data (Any)

Show JSON schema
{
   "title": "NodeSelectorTerm",
   "description": "Term to match nodes.",
   "type": "object",
   "properties": {
      "matchExpressions": {
         "default": [],
         "description": "Matching rules applied to node labels",
         "items": {
            "$ref": "#/$defs/NodeSelectorRequirement"
         },
         "title": "Rules for node labels",
         "type": "array"
      },
      "matchFields": {
         "default": [],
         "description": "Matching rules applied to node fields",
         "items": {
            "$ref": "#/$defs/NodeSelectorRequirement"
         },
         "title": "Rules for node fields",
         "type": "array"
      }
   },
   "$defs": {
      "NodeSelectorOperator": {
         "description": "Match operations for node selectors.",
         "enum": [
            "In",
            "NotIn",
            "Exists",
            "DoesNotExist",
            "Gt",
            "Lt"
         ],
         "title": "NodeSelectorOperator",
         "type": "string"
      },
      "NodeSelectorRequirement": {
         "additionalProperties": false,
         "description": "Individual match rule for nodes.",
         "properties": {
            "key": {
               "description": "Label key to match",
               "title": "Key",
               "type": "string"
            },
            "operator": {
               "$ref": "#/$defs/NodeSelectorOperator",
               "description": "Match operation to use",
               "title": "Operator"
            },
            "values": {
               "default": [],
               "description": "For ``In`` and ``NotIn``, matches any value in this list. For ``Gt`` or ``Lt``, must contain a single member interpreted as an integer. For ``Exists`` or ``DoesNotExist``, must be empty.",
               "items": {
                  "type": "string"
               },
               "title": "Matching values",
               "type": "array"
            }
         },
         "required": [
            "key",
            "operator"
         ],
         "title": "NodeSelectorRequirement",
         "type": "object"
      }
   },
   "additionalProperties": false
}

Fields:
field matchExpressions: Annotated[list[NodeSelectorRequirement], Field(title='Rules for node labels', description='Matching rules applied to node labels')] = [] (name 'match_expressions')

Matching rules applied to node labels

field matchFields: Annotated[list[NodeSelectorRequirement], Field(title='Rules for node fields', description='Matching rules applied to node fields')] = [] (name 'match_fields')

Matching rules applied to node fields

to_kubernetes()

Convert to the corresponding Kubernetes model.

Return type:

V1NodeSelectorTerm