Skip to content

Commit

Permalink
chore: Cleanup unused code bits in scheduling (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Mar 1, 2024
1 parent 685ebfe commit cfb84d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 71 deletions.
14 changes: 7 additions & 7 deletions pkg/controllers/provisioning/scheduling/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ var nodeClaimStateController controller.Controller
var podStateController controller.Controller

const csiProvider = "fake.csi.provider"
const isDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"

func TestScheduling(t *testing.T) {
ctx = TestContextWithLogger(t)
Expand Down Expand Up @@ -103,7 +104,6 @@ var _ = BeforeEach(func() {
newCP := fake.CloudProvider{}
cloudProvider.InstanceTypes, _ = newCP.GetInstanceTypes(ctx, nil)
cloudProvider.CreateCalls = nil
pscheduling.ResetDefaultStorageClass()
scheduling.MaxInstanceTypes = 100
})

Expand Down Expand Up @@ -2860,7 +2860,7 @@ var _ = Context("NodePool", func() {
ObjectMeta: metav1.ObjectMeta{
Name: "default-storage-class",
Annotations: map[string]string{
pscheduling.IsDefaultStorageClassAnnotation: "true",
isDefaultStorageClassAnnotation: "true",
},
},
Provisioner: ptr.String("other-provider"),
Expand Down Expand Up @@ -2965,7 +2965,7 @@ var _ = Context("NodePool", func() {
ObjectMeta: metav1.ObjectMeta{
Name: "default-storage-class",
Annotations: map[string]string{
pscheduling.IsDefaultStorageClassAnnotation: "true",
isDefaultStorageClassAnnotation: "true",
},
},
Provisioner: ptr.String(csiProvider),
Expand Down Expand Up @@ -3063,7 +3063,7 @@ var _ = Context("NodePool", func() {
ObjectMeta: metav1.ObjectMeta{
Name: "default-storage-class",
Annotations: map[string]string{
pscheduling.IsDefaultStorageClassAnnotation: "true",
isDefaultStorageClassAnnotation: "true",
},
},
Provisioner: ptr.String("other-provider"),
Expand All @@ -3072,7 +3072,7 @@ var _ = Context("NodePool", func() {
ObjectMeta: metav1.ObjectMeta{
Name: "newer-default-storage-class",
Annotations: map[string]string{
pscheduling.IsDefaultStorageClassAnnotation: "true",
isDefaultStorageClassAnnotation: "true",
},
},
Provisioner: ptr.String(csiProvider),
Expand Down Expand Up @@ -3268,7 +3268,7 @@ var _ = Context("NodePool", func() {
ObjectMeta: metav1.ObjectMeta{
Name: "in-tree-storage-class",
Annotations: map[string]string{
pscheduling.IsDefaultStorageClassAnnotation: "true",
isDefaultStorageClassAnnotation: "true",
},
},
Provisioner: ptr.String(plugins.AWSEBSInTreePluginName),
Expand Down Expand Up @@ -3326,7 +3326,7 @@ var _ = Context("NodePool", func() {
ObjectMeta: metav1.ObjectMeta{
Name: "in-tree-storage-class",
Annotations: map[string]string{
pscheduling.IsDefaultStorageClassAnnotation: "true",
isDefaultStorageClassAnnotation: "true",
},
},
Provisioner: ptr.String(plugins.AWSEBSInTreePluginName),
Expand Down
64 changes: 0 additions & 64 deletions pkg/scheduling/storageclass.go

This file was deleted.

0 comments on commit cfb84d3

Please sign in to comment.