Skip to content

Commit b3c4426

Browse files
authored
Cleanup after graduation TAS to beta. (#6921)
1 parent 171ee3d commit b3c4426

File tree

24 files changed

+21
-85
lines changed

24 files changed

+21
-85
lines changed

apis/kueue/v1beta1/localqueue_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type LocalQueueFlavorStatus struct {
8484

8585
// topology is the topology that associated with this ResourceFlavor.
8686
//
87-
// This is an alpha field and requires enabling the TopologyAwareScheduling
87+
// This is a beta field and requires enabling the TopologyAwareScheduling
8888
// feature gate.
8989
//
9090
// +optional

charts/kueue/templates/crd/kueue.x-k8s.io_localqueues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ spec:
336336
description: |-
337337
topology is the topology that associated with this ResourceFlavor.
338338
339-
This is an alpha field and requires enabling the TopologyAwareScheduling
339+
This is a beta field and requires enabling the TopologyAwareScheduling
340340
feature gate.
341341
properties:
342342
levels:

config/components/crd/bases/kueue.x-k8s.io_localqueues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ spec:
331331
description: |-
332332
topology is the topology that associated with this ResourceFlavor.
333333
334-
This is an alpha field and requires enabling the TopologyAwareScheduling
334+
This is a beta field and requires enabling the TopologyAwareScheduling
335335
feature gate.
336336
properties:
337337
levels:

pkg/config/validation_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,8 @@ func TestValidateFeatureGates(t *testing.T) {
868868
errorStr: "Cannot use more than one TAS profiles",
869869
},
870870
"cannot set TAS profile with TAS disabled": {
871-
featureGateMap: map[string]bool{"TASProfileLeastFreeCapacity": true,
872-
"TopologyAwareScheduling": true},
873-
errorStr: "Cannot use a TAS profile with TAS disabled",
871+
featureGateMap: map[string]bool{"TASProfileLeastFreeCapacity": true},
872+
errorStr: "Cannot use a TAS profile with TAS disabled",
874873
},
875874
}
876875
for name, tc := range cases {

pkg/scheduler/scheduler_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7026,7 +7026,6 @@ func TestScheduleForTAS(t *testing.T) {
70267026
}
70277027
for name, tc := range cases {
70287028
t.Run(name, func(t *testing.T) {
7029-
features.SetFeatureGateDuringTest(t, features.TopologyAwareScheduling, true)
70307029
for fg, enable := range tc.featureGates {
70317030
features.SetFeatureGateDuringTest(t, fg, enable)
70327031
}
@@ -7581,7 +7580,6 @@ func TestScheduleForTASPreemption(t *testing.T) {
75817580
}
75827581
for name, tc := range cases {
75837582
t.Run(name, func(t *testing.T) {
7584-
features.SetFeatureGateDuringTest(t, features.TopologyAwareScheduling, true)
75857583
ctx, log := utiltesting.ContextWithLog(t)
75867584

75877585
clientBuilder := utiltesting.NewClientBuilder().

site/content/en/docs/reference/kueue.v1beta1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ have.</p>
15951595
</td>
15961596
<td>
15971597
<p>topology is the topology that associated with this ResourceFlavor.</p>
1598-
<p>This is an alpha field and requires enabling the TopologyAwareScheduling
1598+
<p>This is a beta field and requires enabling the TopologyAwareScheduling
15991599
feature gate.</p>
16001600
</td>
16011601
</tr>

test/e2e/config/default/controller_manager_config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@ integrations:
3737
- "leaderworkerset.x-k8s.io/leaderworkerset"
3838
featureGates:
3939
MultiKueueBatchJobWithManagedBy: true
40-
TopologyAwareScheduling: true
4140
LocalQueueMetrics: true

test/e2e/config/default/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,4 @@ managerConfig:
6767
- "leaderworkerset.x-k8s.io/leaderworkerset"
6868
featureGates:
6969
MultiKueueBatchJobWithManagedBy: true
70-
TopologyAwareScheduling: true
7170
LocalQueueMetrics: true

test/integration/singlecluster/controller/jobs/appwrapper/appwrapper_controller_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import (
4040
"sigs.k8s.io/kueue/pkg/controller/constants"
4141
"sigs.k8s.io/kueue/pkg/controller/jobframework"
4242
workloadaw "sigs.k8s.io/kueue/pkg/controller/jobs/appwrapper"
43-
"sigs.k8s.io/kueue/pkg/features"
4443
"sigs.k8s.io/kueue/pkg/util/testing"
4544
testingaw "sigs.k8s.io/kueue/pkg/util/testingjobs/appwrapper"
4645
utiltestingjob "sigs.k8s.io/kueue/pkg/util/testingjobs/job"
@@ -835,7 +834,7 @@ var _ = ginkgo.Describe("AppWrapper controller interacting with scheduler", gink
835834
})
836835
})
837836

838-
var _ = ginkgo.Describe("AppWrapper controller when TopologyAwareScheduling enabled", ginkgo.Ordered, ginkgo.ContinueOnFailure, func() {
837+
var _ = ginkgo.Describe("AppWrapper controller with TopologyAwareScheduling", ginkgo.Ordered, ginkgo.ContinueOnFailure, func() {
839838
const (
840839
nodeGroupLabel = "node-group"
841840
tasBlockLabel = "cloud.com/topology-block"
@@ -859,8 +858,6 @@ var _ = ginkgo.Describe("AppWrapper controller when TopologyAwareScheduling enab
859858
})
860859

861860
ginkgo.BeforeEach(func() {
862-
features.SetFeatureGateDuringTest(ginkgo.GinkgoTB(), features.TopologyAwareScheduling, true)
863-
864861
ns = util.CreateNamespaceFromPrefixWithLog(ctx, k8sClient, "tas-aw-")
865862

866863
nodes = []corev1.Node{

test/integration/singlecluster/controller/jobs/jaxjob/jaxjob_controller_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
"sigs.k8s.io/kueue/pkg/controller/jobframework"
3636
workloadjaxjob "sigs.k8s.io/kueue/pkg/controller/jobs/kubeflow/jobs/jaxjob"
3737
"sigs.k8s.io/kueue/pkg/controller/jobs/kubeflow/kubeflowjob"
38-
"sigs.k8s.io/kueue/pkg/features"
3938
"sigs.k8s.io/kueue/pkg/util/testing"
4039
testingjaxjob "sigs.k8s.io/kueue/pkg/util/testingjobs/jaxjob"
4140
testingnode "sigs.k8s.io/kueue/pkg/util/testingjobs/node"
@@ -561,7 +560,7 @@ var _ = ginkgo.Describe("Job controller interacting with scheduler", ginkgo.Orde
561560
})
562561
})
563562

564-
var _ = ginkgo.Describe("JAXJob controller when TopologyAwareScheduling enabled", ginkgo.Ordered, ginkgo.ContinueOnFailure, func() {
563+
var _ = ginkgo.Describe("JAXJob controller with TopologyAwareScheduling", ginkgo.Ordered, ginkgo.ContinueOnFailure, func() {
565564
const (
566565
nodeGroupLabel = "node-group"
567566
)
@@ -584,8 +583,6 @@ var _ = ginkgo.Describe("JAXJob controller when TopologyAwareScheduling enabled"
584583
})
585584

586585
ginkgo.BeforeEach(func() {
587-
features.SetFeatureGateDuringTest(ginkgo.GinkgoTB(), features.TopologyAwareScheduling, true)
588-
589586
ns = util.CreateNamespaceFromPrefixWithLog(ctx, k8sClient, "tas-jaxjob-")
590587

591588
nodes = []corev1.Node{

0 commit comments

Comments
 (0)