Skip to content

Commit

Permalink
fix cluster cidr log
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Feb 27, 2024
1 parent d8cd32c commit ceec815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/launchtemplate/launchtemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ func (p *Provider) ResolveClusterCIDR(ctx context.Context) error {
}
if ipv4CIDR := out.Cluster.KubernetesNetworkConfig.ServiceIpv4Cidr; ipv4CIDR != nil {
p.ClusterCIDR = ipv4CIDR
logging.FromContext(ctx).With("cluster-cidr", ipv4CIDR).Debugf("discovered cluster CIDR")
logging.FromContext(ctx).With("cluster-cidr", *ipv4CIDR).Debugf("discovered cluster CIDR")
return nil
}
if ipv6CIDR := out.Cluster.KubernetesNetworkConfig.ServiceIpv6Cidr; ipv6CIDR != nil {
logging.FromContext(ctx).With("cluster-cidr", ipv6CIDR).Debugf("discovered cluster CIDR")
logging.FromContext(ctx).With("cluster-cidr", *ipv6CIDR).Debugf("discovered cluster CIDR")
p.ClusterCIDR = ipv6CIDR
return nil
}
Expand Down

0 comments on commit ceec815

Please sign in to comment.