@@ -412,9 +412,9 @@ var _ = Describe("CEL/Validation", func() {
412
412
Expect (nodePool .RuntimeValidate ()).ToNot (Succeed ())
413
413
}
414
414
})
415
- It ("should allow restricted domains exceptions " , func () {
415
+ It ("should allow kubernetes domains" , func () {
416
416
oldNodePool := nodePool .DeepCopy ()
417
- for label := range LabelDomainExceptions {
417
+ for label := range K8sLabelDomains {
418
418
nodePool .Spec .Template .Spec .Requirements = []NodeSelectorRequirementWithMinValues {
419
419
{NodeSelectorRequirement : v1.NodeSelectorRequirement {Key : label + "/test" , Operator : v1 .NodeSelectorOpIn , Values : []string {"test" }}},
420
420
}
@@ -424,9 +424,9 @@ var _ = Describe("CEL/Validation", func() {
424
424
nodePool = oldNodePool .DeepCopy ()
425
425
}
426
426
})
427
- It ("should allow restricted subdomains exceptions" , func () {
427
+ It ("should allow kubernetes subdomains exceptions" , func () {
428
428
oldNodePool := nodePool .DeepCopy ()
429
- for label := range LabelDomainExceptions {
429
+ for label := range K8sLabelDomains {
430
430
nodePool .Spec .Template .Spec .Requirements = []NodeSelectorRequirementWithMinValues {
431
431
{NodeSelectorRequirement : v1.NodeSelectorRequirement {Key : "subdomain." + label + "/test" , Operator : v1 .NodeSelectorOpIn , Values : []string {"test" }}},
432
432
}
@@ -560,9 +560,9 @@ var _ = Describe("CEL/Validation", func() {
560
560
Expect (env .Client .Create (ctx , nodePool )).To (Succeed ())
561
561
Expect (nodePool .RuntimeValidate ()).To (Succeed ())
562
562
})
563
- It ("should allow labels in restricted domains exceptions list " , func () {
563
+ It ("should allow labels in kubernetes domains" , func () {
564
564
oldNodePool := nodePool .DeepCopy ()
565
- for label := range LabelDomainExceptions {
565
+ for label := range K8sLabelDomains {
566
566
fmt .Println (label )
567
567
nodePool .Spec .Template .Labels = map [string ]string {
568
568
label : "test-value" ,
@@ -573,9 +573,9 @@ var _ = Describe("CEL/Validation", func() {
573
573
nodePool = oldNodePool .DeepCopy ()
574
574
}
575
575
})
576
- It ("should allow labels prefixed with the restricted domain exceptions " , func () {
576
+ It ("should allow labels prefixed with the kubernetes domain" , func () {
577
577
oldNodePool := nodePool .DeepCopy ()
578
- for label := range LabelDomainExceptions {
578
+ for label := range K8sLabelDomains {
579
579
nodePool .Spec .Template .Labels = map [string ]string {
580
580
fmt .Sprintf ("%s/key" , label ): "test-value" ,
581
581
}
@@ -587,7 +587,7 @@ var _ = Describe("CEL/Validation", func() {
587
587
})
588
588
It ("should allow subdomain labels in restricted domains exceptions list" , func () {
589
589
oldNodePool := nodePool .DeepCopy ()
590
- for label := range LabelDomainExceptions {
590
+ for label := range K8sLabelDomains {
591
591
nodePool .Spec .Template .Labels = map [string ]string {
592
592
fmt .Sprintf ("subdomain.%s" , label ): "test-value" ,
593
593
}
@@ -597,9 +597,9 @@ var _ = Describe("CEL/Validation", func() {
597
597
nodePool = oldNodePool .DeepCopy ()
598
598
}
599
599
})
600
- It ("should allow subdomain labels prefixed with the restricted domain exceptions " , func () {
600
+ It ("should allow subdomain labels prefixed with the kubernetes domain" , func () {
601
601
oldNodePool := nodePool .DeepCopy ()
602
- for label := range LabelDomainExceptions {
602
+ for label := range K8sLabelDomains {
603
603
nodePool .Spec .Template .Labels = map [string ]string {
604
604
fmt .Sprintf ("subdomain.%s/key" , label ): "test-value" ,
605
605
}
0 commit comments