Skip to content

Commit 4955fcf

Browse files
committed
test without podcidrs
1 parent 8392c60 commit 4955fcf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,15 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
267267
fmt.Printf("Received infraVNETCIDRsv4: %v, infraVNETCIDRsv6: %v", infraVNETCIDRs, infraVNETCIDRsv6)
268268

269269
// Get and parse podCIDRs from env
270-
podCIDRs, err := configuration.PodCIDRs()
271-
if err != nil {
272-
return nil, nil, errors.Wrapf(err, "failed to get podCIDRs from env")
273-
}
274-
podCIDRsV4, podCIDRv6, err := utils.ParseCIDRs(podCIDRs)
275-
if err != nil {
276-
return nil, nil, errors.Wrapf(err, "failed to parse podCIDRs")
277-
}
278-
fmt.Printf("Received podCIDRsV4: %v, podCIDRv6: %v", podCIDRsV4, podCIDRv6)
270+
// podCIDRs, err := configuration.PodCIDRs()
271+
// if err != nil {
272+
// return nil, nil, errors.Wrapf(err, "failed to get podCIDRs from env")
273+
// }
274+
// podCIDRsV4, podCIDRv6, err := utils.ParseCIDRs(podCIDRs)
275+
// if err != nil {
276+
// return nil, nil, errors.Wrapf(err, "failed to parse podCIDRs")
277+
// }
278+
// fmt.Printf("Received podCIDRsV4: %v, podCIDRv6: %v", podCIDRsV4, podCIDRv6)
279279

280280
// Get and parse serviceCIDRs from env
281281
serviceCIDRs, err := configuration.ServiceCIDRs()
@@ -289,11 +289,11 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
289289
fmt.Printf("Received ServiceCIDRsv4: %v, ServiceCIDRsv6: %v", serviceCIDRsV4, serviceCIDRsV6)
290290

291291
v4IPs = append(v4IPs, infraVNETCIDRsv4...)
292-
v4IPs = append(v4IPs, podCIDRsV4...)
292+
// v4IPs = append(v4IPs, podCIDRsV4...)
293293
v4IPs = append(v4IPs, serviceCIDRsV4...)
294294

295295
v6IPs = append(v6IPs, infraVNETCIDRsv6...)
296-
v6IPs = append(v6IPs, podCIDRv6...)
296+
// v6IPs = append(v6IPs, podCIDRv6...)
297297
v6IPs = append(v6IPs, serviceCIDRsV6...)
298298

299299
return v4IPs, v6IPs, nil

0 commit comments

Comments
 (0)