Skip to content

Commit b82aa40

Browse files
committed
refactor gpu_processor_test to remove cyclic dependency
this change removes the import from the gce module in favor of using the string value directly.
1 parent a5f07fe commit b82aa40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cluster-autoscaler/processors/customresources/gpu_processor_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
apiv1 "k8s.io/api/core/v1"
2626
"k8s.io/apimachinery/pkg/api/resource"
2727
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28-
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/gce"
2928
testprovider "k8s.io/autoscaler/cluster-autoscaler/cloudprovider/test"
3029
"k8s.io/autoscaler/cluster-autoscaler/context"
3130
"k8s.io/autoscaler/cluster-autoscaler/utils/gpu"
@@ -157,7 +156,7 @@ func TestFilterOutNodesWithUnreadyResources(t *testing.T) {
157156
ObjectMeta: metav1.ObjectMeta{
158157
Name: "nodeGPUViaDra",
159158
Labels: map[string]string{
160-
gce.DraGPULabel: "true",
159+
"cloud.google.com/gke-gpu-dra-driver": "true",
161160
},
162161
CreationTimestamp: metav1.NewTime(start),
163162
},

0 commit comments

Comments
 (0)