Skip to content

Commit

Permalink
add log for cidrs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Jan 15, 2025
1 parent 272f829 commit d5639d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cns/middlewares/k8sSwiftV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
if err != nil {
return nil, nil, errors.Wrapf(err, "failed to parse infraVNETCIDRs")
}
log.Printf("Received infraVNETCIDRsv4: %v, infraVNETCIDRsv6: %v", infraVNETCIDRs, infraVNETCIDRsv6)

Check failure on line 267 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log

Check failure on line 267 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log

Check failure on line 267 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log

Check failure on line 267 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log

Check failure on line 267 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log

Check failure on line 267 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log

// Get and parse podCIDRs from env
podCIDRs, err := configuration.PodCIDRs()
Expand All @@ -274,6 +275,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
if err != nil {
return nil, nil, errors.Wrapf(err, "failed to parse podCIDRs")
}
log.Printf("Received podCIDRsV4: %v, podCIDRv6: %v", podCIDRsV4, podCIDRv6)

Check failure on line 278 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log

Check failure on line 278 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log

Check failure on line 278 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log

Check failure on line 278 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log

Check failure on line 278 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log

Check failure on line 278 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log

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

Check failure on line 289 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log (typecheck)

Check failure on line 289 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

undefined: log) (typecheck)

Check failure on line 289 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log (typecheck)

Check failure on line 289 in cns/middlewares/k8sSwiftV2.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

undefined: log) (typecheck)

v4IPs = append(v4IPs, infraVNETCIDRsv4...)
v4IPs = append(v4IPs, podCIDRsV4...)
Expand Down

0 comments on commit d5639d2

Please sign in to comment.