@@ -231,7 +231,7 @@ var _ = Describe("CloudProvider", func() {
231231 cloudProviderNodeClaim , err := cloudProvider .Create (ctx , nodeClaim )
232232 Expect (err ).To (BeNil ())
233233 Expect (cloudProviderNodeClaim ).ToNot (BeNil ())
234- _ , ok := cloudProviderNodeClaim .ObjectMeta . Annotations [v1beta1 .AnnotationEC2NodeClassHash ]
234+ _ , ok := cloudProviderNodeClaim .Annotations [v1beta1 .AnnotationEC2NodeClassHash ]
235235 Expect (ok ).To (BeTrue ())
236236 })
237237 It ("should expect a strict set of annotation keys" , func () {
@@ -247,7 +247,7 @@ var _ = Describe("CloudProvider", func() {
247247 cloudProviderNodeClaim , err := cloudProvider .Create (ctx , nodeClaim )
248248 Expect (err ).To (BeNil ())
249249 Expect (cloudProviderNodeClaim ).ToNot (BeNil ())
250- v , ok := cloudProviderNodeClaim .ObjectMeta . Annotations [v1beta1 .AnnotationEC2NodeClassHashVersion ]
250+ v , ok := cloudProviderNodeClaim .Annotations [v1beta1 .AnnotationEC2NodeClassHashVersion ]
251251 Expect (ok ).To (BeTrue ())
252252 Expect (v ).To (Equal (v1beta1 .EC2NodeClassHashVersion ))
253253 })
@@ -1005,11 +1005,11 @@ var _ = Describe("CloudProvider", func() {
10051005 Expect (isDrifted ).To (BeEmpty ())
10061006 })
10071007 It ("should not return drifted if the NodeClaim's karpenter.k8s.aws/ec2nodeclass-hash-version annotation does not match the EC2NodeClass's" , func () {
1008- nodeClass .ObjectMeta . Annotations = map [string ]string {
1008+ nodeClass .Annotations = map [string ]string {
10091009 v1beta1 .AnnotationEC2NodeClassHash : "test-hash-111111" ,
10101010 v1beta1 .AnnotationEC2NodeClassHashVersion : "test-hash-version-1" ,
10111011 }
1012- nodeClaim .ObjectMeta . Annotations = map [string ]string {
1012+ nodeClaim .Annotations = map [string ]string {
10131013 v1beta1 .AnnotationEC2NodeClassHash : "test-hash-222222" ,
10141014 v1beta1 .AnnotationEC2NodeClassHashVersion : "test-hash-version-2" ,
10151015 }
@@ -1019,10 +1019,10 @@ var _ = Describe("CloudProvider", func() {
10191019 Expect (isDrifted ).To (BeEmpty ())
10201020 })
10211021 It ("should not return drifted if karpenter.k8s.aws/ec2nodeclass-hash-version annotation is not present on the NodeClass" , func () {
1022- nodeClass .ObjectMeta . Annotations = map [string ]string {
1022+ nodeClass .Annotations = map [string ]string {
10231023 v1beta1 .AnnotationEC2NodeClassHash : "test-hash-111111" ,
10241024 }
1025- nodeClaim .ObjectMeta . Annotations = map [string ]string {
1025+ nodeClaim .Annotations = map [string ]string {
10261026 v1beta1 .AnnotationEC2NodeClassHash : "test-hash-222222" ,
10271027 v1beta1 .AnnotationEC2NodeClassHashVersion : "test-hash-version-2" ,
10281028 }
@@ -1036,11 +1036,11 @@ var _ = Describe("CloudProvider", func() {
10361036 Expect (isDrifted ).To (BeEmpty ())
10371037 })
10381038 It ("should not return drifted if karpenter.k8s.aws/ec2nodeclass-hash-version annotation is not present on the NodeClaim" , func () {
1039- nodeClass .ObjectMeta . Annotations = map [string ]string {
1039+ nodeClass .Annotations = map [string ]string {
10401040 v1beta1 .AnnotationEC2NodeClassHash : "test-hash-111111" ,
10411041 v1beta1 .AnnotationEC2NodeClassHashVersion : "test-hash-version-1" ,
10421042 }
1043- nodeClaim .ObjectMeta . Annotations = map [string ]string {
1043+ nodeClaim .Annotations = map [string ]string {
10441044 v1beta1 .AnnotationEC2NodeClassHash : "test-hash-222222" ,
10451045 }
10461046 // should trigger drift
0 commit comments