{
  "description": "GpuDevicePlugin is the Schema for the gpudeviceplugins API. It represents\nthe GPU device plugin responsible for advertising Intel GPU hardware resources to\nthe kubelet.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "GpuDevicePluginSpec defines the desired state of GpuDevicePlugin.",
      "properties": {
        "allowIDs": {
          "description": "AllowIDs is a comma-separated list of PCI IDs of GPU devices that should only be advertised by the plugin.\nIf not set, all devices are advertised.\nThe list can contain IDs in the form of '0x1234,0x49a4,0x50b4'.\nCannot be used together with DenyIDs.",
          "type": [
            "string",
            "null"
          ]
        },
        "denyIDs": {
          "description": "DenyIDs is a comma-separated list of PCI IDs of GPU devices that should only be denied by the plugin.\nIf not set, all devices are advertised.\nThe list can contain IDs in the form of '0x1234,0x49a4,0x50b4'.\nCannot be used together with AllowIDs.",
          "type": [
            "string",
            "null"
          ]
        },
        "enableMonitoring": {
          "description": "EnableMonitoring enables the monitoring resource ('i915_monitoring')\nwhich gives access to all GPU devices on given node. Typically used with Intel XPU-Manager.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "image": {
          "description": "Image is a container image with GPU device plugin executable.",
          "type": [
            "string",
            "null"
          ]
        },
        "initImage": {
          "description": "InitImage is a container image with tools (e.g., GPU NFD source hook) installed on each node.",
          "type": [
            "string",
            "null"
          ]
        },
        "logLevel": {
          "description": "LogLevel sets the plugin's log level.",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "nodeSelector": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "NodeSelector provides a simple way to constrain device plugin pods to nodes with particular labels.",
          "type": [
            "object",
            "null"
          ]
        },
        "preferredAllocationPolicy": {
          "description": "PreferredAllocationPolicy sets the mode of allocating GPU devices on a node.\nSee documentation for detailed description of the policies. Only valid when SharedDevNum \u003e 1 is set.",
          "enum": [
            "balanced",
            "packed",
            "none"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "sharedDevNum": {
          "description": "SharedDevNum is a number of containers that can share the same GPU device.",
          "minimum": 1,
          "type": [
            "integer",
            "null"
          ]
        },
        "tolerations": {
          "description": "Specialized nodes (e.g., with accelerators) can be Tainted to make sure unwanted pods are not scheduled on them. Tolerations can be set for the plugin pod to neutralize the Taint.",
          "items": {
            "additionalProperties": false,
            "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.",
            "properties": {
              "effect": {
                "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "key": {
                "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "operator": {
                "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "tolerationSeconds": {
                "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "value": {
                "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "GpuDevicePluginStatus defines the observed state of GpuDevicePlugin.",
      "properties": {
        "controlledDaemonSet": {
          "additionalProperties": false,
          "description": "ControlledDaemoSet references the DaemonSet controlled by the operator.",
          "properties": {
            "apiVersion": {
              "description": "API version of the referent.",
              "type": [
                "string",
                "null"
              ]
            },
            "fieldPath": {
              "description": "If referring to a piece of an object instead of an entire object, this string\nshould contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].\nFor example, if the object reference is to a container within a pod, this would take on a value like:\n\"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered\nthe event) or if no container name is specified \"spec.containers[2]\" (container with\nindex 2 in this pod). This syntax is chosen only to have some well-defined way of\nreferencing a part of an object.",
              "type": [
                "string",
                "null"
              ]
            },
            "kind": {
              "description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
              "type": [
                "string",
                "null"
              ]
            },
            "namespace": {
              "description": "Namespace of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
              "type": [
                "string",
                "null"
              ]
            },
            "resourceVersion": {
              "description": "Specific resourceVersion to which this reference is made, if any.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
              "type": [
                "string",
                "null"
              ]
            },
            "uid": {
              "description": "UID of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-map-type": "atomic"
        },
        "desiredNumberScheduled": {
          "description": "The total number of nodes that should be running the device plugin\npod (including nodes correctly running the device plugin pod).",
          "format": "int32",
          "type": "integer"
        },
        "nodeNames": {
          "description": "The list of Node names where the device plugin pods are running.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "numberReady": {
          "description": "The number of nodes that should be running the device plugin pod and have one\nor more of the device plugin pod running and ready.",
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "desiredNumberScheduled",
        "numberReady"
      ],
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}