NodeSelector

pydantic model controller.models.domain.kubernetes.NodeSelector

Matching terms for nodes.

Parameters:

data (Any)

Show JSON schema
{
   "title": "NodeSelector",
   "description": "Matching terms for nodes.",
   "type": "object",
   "properties": {
      "nodeSelectorTerms": {
         "default": [],
         "description": "Matching terms for nodes",
         "items": {
            "$ref": "#/$defs/NodeSelectorTerm"
         },
         "title": "Terms",
         "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": {
               "allOf": [
                  {
                     "$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"
      },
      "NodeSelectorTerm": {
         "additionalProperties": false,
         "description": "Term to match nodes.",
         "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"
            }
         },
         "title": "NodeSelectorTerm",
         "type": "object"
      }
   },
   "additionalProperties": false
}

Fields:
field nodeSelectorTerms: list[NodeSelectorTerm] = [] (name 'node_selector_terms')

Matching terms for nodes

to_kubernetes()

Convert to the corresponding Kubernetes model.

Return type:

V1NodeSelector