Skip to content

Commit 7fb028a

Browse files
committed
DRA: add DRADeviceTaints feature
1 parent f007012 commit 7fb028a

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

pkg/features/kube_features.go

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ const (
220220
// is to move it into a separate KEP.
221221
DRAAdminAccess featuregate.Feature = "DRAAdminAccess"
222222

223+
// owner: @pohly
224+
// kep: http://kep.k8s.io/5055
225+
//
226+
// Marking devices as tainted can prevent using them for new pods and/or
227+
// cause pods using them to stop. Users can decide to tolerate taints.
228+
DRADeviceTaints featuregate.Feature = "DRADeviceTaints"
229+
223230
// owner: @mortent
224231
// kep: http://kep.k8s.io/4816
225232
//
@@ -228,6 +235,13 @@ const (
228235
// be selected.
229236
DRAPrioritizedList featuregate.Feature = "DRAPrioritizedList"
230237

238+
// owner: @LionelJouin
239+
// kep: http://kep.k8s.io/4817
240+
//
241+
// Enables support the ResourceClaim.status.devices field and for setting this
242+
// status from DRA drivers.
243+
DRAResourceClaimDeviceStatus featuregate.Feature = "DRAResourceClaimDeviceStatus"
244+
231245
// owner: @pohly
232246
// kep: http://kep.k8s.io/4381
233247
//
@@ -236,13 +250,6 @@ const (
236250
// based on "structured parameters".
237251
DynamicResourceAllocation featuregate.Feature = "DynamicResourceAllocation"
238252

239-
// owner: @LionelJouin
240-
// kep: http://kep.k8s.io/4817
241-
//
242-
// Enables support the ResourceClaim.status.devices field and for setting this
243-
// status from DRA drivers.
244-
DRAResourceClaimDeviceStatus featuregate.Feature = "DRAResourceClaimDeviceStatus"
245-
246253
// owner: @lauralorenz
247254
// kep: https://kep.k8s.io/4603
248255
//

pkg/features/versioned_kube_features.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,24 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
178178
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Alpha},
179179
},
180180

181-
DRAPrioritizedList: {
181+
DRADeviceTaints: {
182182
{Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Alpha},
183183
},
184184

185-
DynamicResourceAllocation: {
186-
{Version: version.MustParse("1.26"), Default: false, PreRelease: featuregate.Alpha},
187-
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Beta},
185+
DRAPrioritizedList: {
186+
{Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Alpha},
188187
},
189188

190189
DRAResourceClaimDeviceStatus: {
191190
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Alpha},
192191
{Version: version.MustParse("1.33"), Default: true, PreRelease: featuregate.Beta},
193192
},
194193

194+
DynamicResourceAllocation: {
195+
{Version: version.MustParse("1.26"), Default: false, PreRelease: featuregate.Alpha},
196+
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Beta},
197+
},
198+
195199
KubeletCrashLoopBackOffMax: {
196200
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Alpha},
197201
},

test/compatibility_lifecycle/reference/versioned_feature_list.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@
425425
lockToDefault: false
426426
preRelease: Alpha
427427
version: "1.32"
428+
- name: DRADeviceTaints
429+
versionedSpecs:
430+
- default: false
431+
lockToDefault: false
432+
preRelease: Alpha
433+
version: "1.33"
428434
- name: DRAPrioritizedList
429435
versionedSpecs:
430436
- default: false

0 commit comments

Comments
 (0)