Skip to content

Commit 086297b

Browse files
committed
remove logs
1 parent 4955fcf commit 086297b

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -264,18 +264,16 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
264264
if err != nil {
265265
return nil, nil, errors.Wrapf(err, "failed to parse infraVNETCIDRs")
266266
}
267-
fmt.Printf("Received infraVNETCIDRsv4: %v, infraVNETCIDRsv6: %v", infraVNETCIDRs, infraVNETCIDRsv6)
268267

269268
// 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)
269+
podCIDRs, err := configuration.PodCIDRs()
270+
if err != nil {
271+
return nil, nil, errors.Wrapf(err, "failed to get podCIDRs from env")
272+
}
273+
podCIDRsV4, podCIDRv6, err := utils.ParseCIDRs(podCIDRs)
274+
if err != nil {
275+
return nil, nil, errors.Wrapf(err, "failed to parse podCIDRs")
276+
}
279277

280278
// Get and parse serviceCIDRs from env
281279
serviceCIDRs, err := configuration.ServiceCIDRs()
@@ -286,7 +284,6 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
286284
if err != nil {
287285
return nil, nil, errors.Wrapf(err, "failed to parse serviceCIDRs")
288286
}
289-
fmt.Printf("Received ServiceCIDRsv4: %v, ServiceCIDRsv6: %v", serviceCIDRsV4, serviceCIDRsV6)
290287

291288
v4IPs = append(v4IPs, infraVNETCIDRsv4...)
292289
// v4IPs = append(v4IPs, podCIDRsV4...)

0 commit comments

Comments
 (0)