From deaaa124a5b1a895fa8c516ae2a36137c3b81835 Mon Sep 17 00:00:00 2001 From: Morten Torkildsen Date: Tue, 18 Feb 2025 17:58:07 +0000 Subject: [PATCH] DRA: Feature gate for Partitionable Devices Co-authored-by: cici37 --- pkg/features/kube_features.go | 12 ++++++++++++ .../reference/versioned_feature_list.yaml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/pkg/features/kube_features.go b/pkg/features/kube_features.go index d66c22ef71c..1b189380d40 100644 --- a/pkg/features/kube_features.go +++ b/pkg/features/kube_features.go @@ -231,6 +231,14 @@ const ( // cause pods using them to stop. Users can decide to tolerate taints. DRADeviceTaints featuregate.Feature = "DRADeviceTaints" + // owner: @mortent, @cici37 + // kep: http://kep.k8s.io/4815 + // + // Enables support for dynamically partitioning devices based on + // which parts of them were allocated during scheduling. + // + DRAPartitionableDevices featuregate.Feature = "DRAPartitionableDevices" + // owner: @mortent // kep: http://kep.k8s.io/4816 // @@ -1114,6 +1122,10 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate {Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Alpha}, }, + DRAPartitionableDevices: { + {Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Alpha}, + }, + DRAPrioritizedList: { {Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Alpha}, }, diff --git a/test/compatibility_lifecycle/reference/versioned_feature_list.yaml b/test/compatibility_lifecycle/reference/versioned_feature_list.yaml index acc2f63f7fb..9ea85f3bdd0 100644 --- a/test/compatibility_lifecycle/reference/versioned_feature_list.yaml +++ b/test/compatibility_lifecycle/reference/versioned_feature_list.yaml @@ -441,6 +441,12 @@ lockToDefault: false preRelease: Alpha version: "1.33" +- name: DRAPartitionableDevices + versionedSpecs: + - default: false + lockToDefault: false + preRelease: Alpha + version: "1.33" - name: DRAPrioritizedList versionedSpecs: - default: false