struct
Kubernetes::ResourceSliceSpec
- Kubernetes::ResourceSliceSpec
- Struct
- Value
- Object
Overview
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_resource_v1.crgenerated/models/io_k8s_api_resource_v1beta1.cr
generated/models/io_k8s_api_resource_v1beta2.cr
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#all_nodes : Bool | Nil
AllNodes indicates that all nodes have access to the resources in the pool.
-
#all_nodes=(all_nodes : Bool | Nil)
AllNodes indicates that all nodes have access to the resources in the pool.
-
#devices : Array(Device) | Nil
Devices lists some or all of the devices in this pool.
-
#devices=(devices : Array(Device) | Nil)
Devices lists some or all of the devices in this pool.
-
#devices=(devices : Array(Device) | Nil)
Devices lists some or all of the devices in this pool.
-
#devices=(devices : Array(Device) | Nil)
Devices lists some or all of the devices in this pool.
-
#driver : String | Nil
Driver identifies the DRA driver providing the capacity information.
-
#driver=(driver : String | Nil)
Driver identifies the DRA driver providing the capacity information.
-
#node_name : String | Nil
NodeName identifies the node which provides the resources in this pool.
-
#node_name=(node_name : String | Nil)
NodeName identifies the node which provides the resources in this pool.
-
#node_selector : NodeSelector | Nil
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
-
#node_selector=(node_selector : NodeSelector | Nil)
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
-
#per_device_node_selection : Bool | Nil
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device.
-
#per_device_node_selection=(per_device_node_selection : Bool | Nil)
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device.
-
#pool : ResourcePool | Nil
Pool describes the pool that this ResourceSlice belongs to.
-
#pool=(pool : ResourcePool | Nil)
Pool describes the pool that this ResourceSlice belongs to.
-
#shared_counters : Array(CounterSet) | Nil
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
-
#shared_counters=(shared_counters : Array(CounterSet) | Nil)
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
-
#shared_counters=(shared_counters : Array(CounterSet) | Nil)
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
-
#shared_counters=(shared_counters : Array(CounterSet) | Nil)
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice.
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice.
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice.
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice.
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. Must 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.
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. Must 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.
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. This 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. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
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. This 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. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node. Must use exactly one term. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node. Must use exactly one term. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
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. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
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. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.