{
  "description": "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.",
  "properties": {
    "allNodes": {
      "description": "AllNodes indicates that all nodes have access to the resources in the pool.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "devices": {
      "description": "Devices lists some or all of the devices in this pool.\n\nMust not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.\n\nOnly one of Devices and SharedCounters can be set in a ResourceSlice.",
      "items": {
        "$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1beta2.Device"
      },
      "type": [
        "array",
        "null"
      ],
      "x-kubernetes-list-type": "atomic"
    },
    "driver": {
      "description": "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable.",
      "type": [
        "string",
        "null"
      ]
    },
    "nodeName": {
      "description": "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.\n\nThis field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.",
      "type": [
        "string",
        "null"
      ]
    },
    "nodeSelector": {
      "$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.NodeSelector",
      "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set."
    },
    "perDeviceNodeSelection": {
      "description": "PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "pool": {
      "$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1beta2.ResourcePool",
      "description": "Pool describes the pool that this ResourceSlice belongs to."
    },
    "sharedCounters": {
      "description": "SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.\n\nThe names of the counter sets must be unique in the ResourcePool.\n\nOnly one of Devices and SharedCounters can be set in a ResourceSlice.\n\nThe maximum number of counter sets is 8.",
      "items": {
        "$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1beta2.CounterSet"
      },
      "type": [
        "array",
        "null"
      ],
      "x-kubernetes-list-type": "atomic"
    }
  },
  "required": [
    "driver",
    "pool"
  ],
  "type": "object",
  "$schema": "http://json-schema.org/schema#"
}