@@ -419,8 +419,8 @@ kind: ResourceClass
419
419
metadata:
420
420
name: acme-gpu
421
421
driverName: gpu.example.com
422
- parameters :
423
- apiVersion : gpu.example.com/v1
422
+ parametersRef :
423
+ apiGroup : gpu.example.com
424
424
kind: GPUInit
425
425
name: acme-gpu-init
426
426
```
@@ -450,8 +450,8 @@ spec:
450
450
- name: "gpu" # this name gets referenced below under "claims"
451
451
template:
452
452
resourceClassName: "acme-gpu"
453
- parameters :
454
- apiVersion : gpu.example.com/v1
453
+ parametersRef :
454
+ apiGroup : gpu.example.com
455
455
kind: GPURequirements
456
456
name: device-consumer-gpu-parameters
457
457
containers:
@@ -1124,13 +1124,13 @@ type ResourceClass struct {
1124
1124
// (acme.example.com).
1125
1125
DriverName string
1126
1126
1127
- // Parameters references an arbitrary separate object that may hold
1127
+ // ParametersRef references an arbitrary separate object that may hold
1128
1128
// parameters that will be used by the
1129
1129
// driver when allocating a resource that uses this class. The driver
1130
1130
// will be able to distinguish between parameters stored here and and
1131
1131
// those stored in ResourceClaimSpec. These parameters here can only be
1132
1132
// set by cluster administrators.
1133
- Parameters ResourceClassParametersReference
1133
+ ParametersRef ResourceClassParametersReference
1134
1134
1135
1135
// Only nodes matching the selector will be considered by the scheduler
1136
1136
// when trying to find a Node that fits a Pod when that Pod uses
@@ -1180,12 +1180,12 @@ type ResourceClaimSpec struct {
1180
1180
// reject claims where the class is missing.
1181
1181
ResourceClassName string
1182
1182
1183
- // Parameters references a separate object with arbitrary parameters
1183
+ // ParametersRef references a separate object with arbitrary parameters
1184
1184
// that will be used by the
1185
1185
// driver when allocating a resource for the claim.
1186
1186
//
1187
1187
// The object must be in the same namespace as the ResourceClaim.
1188
- Parameters ResourceClaimParametersReference
1188
+ ParametersRef ResourceClaimParametersReference
1189
1189
1190
1190
// Allocation can start immediately or when a Pod wants to use the
1191
1191
// resource. Waiting for a Pod is the default.
0 commit comments