ResourceClass

data class ResourceClass(val apiVersion: String? = null, val driverName: String, val kind: String? = null, val metadata: ObjectMeta? = null, val parametersRef: ResourceClassParametersReference? = null, val suitableNodes: NodeSelector? = null)

ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.

Constructors

Link copied to clipboard
constructor(apiVersion: String? = null, driverName: String, kind: String? = null, metadata: ObjectMeta? = null, parametersRef: ResourceClassParametersReference? = null, suitableNodes: NodeSelector? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val apiVersion: String? = null

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

Link copied to clipboard

DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. Resource drivers have a unique name in forward domain order (acme.example.com).

Link copied to clipboard
val kind: String? = null

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

Link copied to clipboard
val metadata: ObjectMeta? = null

Standard object metadata

Link copied to clipboard

ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.

Link copied to clipboard

Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates.