@@ -50,12 +50,12 @@ var _ = Describe("NodeGroup controller", func() {
5050 Value : "tainted" ,
5151 Effect : "NoSchedule" ,
5252 }
53- nodeGroups = []v1alpha1 .NodeGroup {
53+ nodeGroups = []v1alpha2 .NodeGroup {
5454 {
5555 ObjectMeta : metav1.ObjectMeta {
5656 Name : "nodegroup1" ,
5757 },
58- Spec : v1alpha1 .NodeGroupSpec {
58+ Spec : v1alpha2 .NodeGroupSpec {
5959 Members : []string {"node1" },
6060 Labels : map [string ]string {
6161 "nodegroup1" : "value1" ,
@@ -66,7 +66,7 @@ var _ = Describe("NodeGroup controller", func() {
6666 ObjectMeta : metav1.ObjectMeta {
6767 Name : "nodegroup2" ,
6868 },
69- Spec : v1alpha1 .NodeGroupSpec {
69+ Spec : v1alpha2 .NodeGroupSpec {
7070 Members : []string {"node2" },
7171 Labels : map [string ]string {
7272 "nodegroup2" : "value2" ,
@@ -91,7 +91,7 @@ var _ = Describe("NodeGroup controller", func() {
9191 }
9292 for _ , nodeGroup := range nodeGroups {
9393 Expect (k8sClient .Create (context .Background (), & nodeGroup )).Should (Succeed ())
94- ng := & v1alpha1 .NodeGroup {}
94+ ng := & v1alpha2 .NodeGroup {}
9595 Eventually (func () bool {
9696 err := k8sClient .Get (context .Background (), types.NamespacedName {Name : nodeGroup .Name }, ng )
9797 if err != nil {
@@ -113,7 +113,7 @@ var _ = Describe("NodeGroup controller", func() {
113113
114114 Context ("NodeGroups" , func () {
115115 It ("should add a finalizer to NodeGroups" , func () {
116- ng := & v1alpha1 .NodeGroup {}
116+ ng := & v1alpha2 .NodeGroup {}
117117 for _ , nodeGroup := range nodeGroups {
118118 Expect (k8sClient .Get (context .Background (), types.NamespacedName {Name : nodeGroup .Name }, ng )).Should (Succeed ())
119119 Expect (ng .Finalizers ).Should (HaveLen (1 ))
@@ -180,7 +180,7 @@ var _ = Describe("NodeGroup controller", func() {
180180 }
181181 return n .GetLabels ()["nodegroup2" ] == "value2"
182182 })
183- ng := & v1alpha1 .NodeGroup {}
183+ ng := & v1alpha2 .NodeGroup {}
184184 Expect (k8sClient .Get (context .Background (), types.NamespacedName {Name : "nodegroup2" }, ng )).To (Succeed ())
185185 Expect (k8sClient .Delete (context .Background (), ng )).To (Succeed ())
186186 Eventually (func () bool {
0 commit comments