@@ -37,6 +37,7 @@ import (
37
37
networkingv1 "github.com/alibaba/hybridnet/pkg/apis/networking/v1"
38
38
"github.com/alibaba/hybridnet/pkg/constants"
39
39
"github.com/alibaba/hybridnet/pkg/controllers/utils"
40
+ "github.com/alibaba/hybridnet/pkg/utils/transform"
40
41
//+kubebuilder:scaffold:imports
41
42
)
42
43
@@ -181,7 +182,7 @@ var _ = Describe("Pod controller integration test suite", func() {
181
182
context .Background (),
182
183
& networkingv1.IPInstance {},
183
184
client.MatchingLabels {
184
- constants .LabelPod : podName ,
185
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
185
186
},
186
187
client .InNamespace ("default" ),
187
188
)).NotTo (HaveOccurred ())
@@ -706,7 +707,7 @@ var _ = Describe("Pod controller integration test suite", func() {
706
707
context .Background (),
707
708
& networkingv1.IPInstance {},
708
709
client.MatchingLabels {
709
- constants .LabelPod : podName ,
710
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
710
711
},
711
712
client .InNamespace ("default" ),
712
713
)).NotTo (HaveOccurred ())
@@ -855,7 +856,7 @@ var _ = Describe("Pod controller integration test suite", func() {
855
856
context .Background (),
856
857
& networkingv1.IPInstance {},
857
858
client.MatchingLabels {
858
- constants .LabelPod : podName ,
859
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
859
860
},
860
861
client .InNamespace ("default" ),
861
862
)).NotTo (HaveOccurred ())
@@ -1117,7 +1118,7 @@ var _ = Describe("Pod controller integration test suite", func() {
1117
1118
context .Background (),
1118
1119
& networkingv1.IPInstance {},
1119
1120
client.MatchingLabels {
1120
- constants .LabelPod : podName ,
1121
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
1121
1122
},
1122
1123
client .InNamespace ("default" ),
1123
1124
)).NotTo (HaveOccurred ())
@@ -1270,7 +1271,7 @@ var _ = Describe("Pod controller integration test suite", func() {
1270
1271
context .Background (),
1271
1272
& networkingv1.IPInstance {},
1272
1273
client.MatchingLabels {
1273
- constants .LabelPod : podName ,
1274
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
1274
1275
},
1275
1276
client .InNamespace ("default" ),
1276
1277
)).NotTo (HaveOccurred ())
@@ -1463,7 +1464,7 @@ var _ = Describe("Pod controller integration test suite", func() {
1463
1464
context .Background (),
1464
1465
& networkingv1.IPInstance {},
1465
1466
client.MatchingLabels {
1466
- constants .LabelPod : podName ,
1467
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
1467
1468
},
1468
1469
client .InNamespace ("default" ),
1469
1470
)).NotTo (HaveOccurred ())
@@ -1725,7 +1726,7 @@ var _ = Describe("Pod controller integration test suite", func() {
1725
1726
context .Background (),
1726
1727
& networkingv1.IPInstance {},
1727
1728
client.MatchingLabels {
1728
- constants .LabelPod : podName ,
1729
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
1729
1730
},
1730
1731
client .InNamespace ("default" ),
1731
1732
)).NotTo (HaveOccurred ())
@@ -1909,7 +1910,7 @@ var _ = Describe("Pod controller integration test suite", func() {
1909
1910
context .Background (),
1910
1911
& networkingv1.IPInstance {},
1911
1912
client.MatchingLabels {
1912
- constants .LabelPod : podName ,
1913
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
1913
1914
},
1914
1915
client .InNamespace ("default" ),
1915
1916
)).NotTo (HaveOccurred ())
@@ -2080,7 +2081,7 @@ var _ = Describe("Pod controller integration test suite", func() {
2080
2081
context .Background (),
2081
2082
& networkingv1.IPInstance {},
2082
2083
client.MatchingLabels {
2083
- constants .LabelPod : podName ,
2084
+ constants .LabelPod : transform . TransferPodNameForLabelValue ( podName ) ,
2084
2085
},
2085
2086
client .InNamespace ("default" ),
2086
2087
)).NotTo (HaveOccurred ())
0 commit comments