struct
Kubernetes::DeviceClassSpec
- Kubernetes::DeviceClassSpec
- Struct
- Value
- Object
Overview
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
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
-
#config : Array(DeviceClassConfiguration) | Nil
Config defines configuration parameters that apply to each device that is claimed via this class.
-
#config=(config : Array(DeviceClassConfiguration) | Nil)
Config defines configuration parameters that apply to each device that is claimed via this class.
-
#config=(config : Array(DeviceClassConfiguration) | Nil)
Config defines configuration parameters that apply to each device that is claimed via this class.
-
#config=(config : Array(DeviceClassConfiguration) | Nil)
Config defines configuration parameters that apply to each device that is claimed via this class.
-
#extended_resource_name : String | Nil
ExtendedResourceName is the extended resource name for the devices of this class.
-
#extended_resource_name=(extended_resource_name : String | Nil)
ExtendedResourceName is the extended resource name for the devices of this class.
-
#selectors : Array(DeviceSelector) | Nil
Each selector must be satisfied by a device which is claimed via this class.
-
#selectors=(selectors : Array(DeviceSelector) | Nil)
Each selector must be satisfied by a device which is claimed via this class.
-
#selectors=(selectors : Array(DeviceSelector) | Nil)
Each selector must be satisfied by a device which is claimed via this class.
-
#selectors=(selectors : Array(DeviceSelector) | Nil)
Each selector must be satisfied by a device which is claimed via this class.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.
ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field.
ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field.
Each selector must be satisfied by a device which is claimed via this class.
Each selector must be satisfied by a device which is claimed via this class.
Each selector must be satisfied by a device which is claimed via this class.
Each selector must be satisfied by a device which is claimed via this class.