Skip to content

Commit

Permalink
reverting correct way of setting defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-pieszka committed Sep 23, 2024
1 parent 8492780 commit c593ee0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,15 @@ func (s *CreateRuntimeResourceStep) createNetworkingConfiguration(operation inte
networkingParams = &internal.NetworkingDTO{}
}

nodes := networking.DefaultNodesCIDR
if networkingParams.NodesCidr != "" {
nodes = networkingParams.NodesCidr
}

return imv1.Networking{
Pods: DefaultIfParamNotSet(networking.DefaultPodsCIDR, networkingParams.PodsCidr),
Services: DefaultIfParamNotSet(networking.DefaultServicesCIDR, networkingParams.ServicesCidr),
Nodes: DefaultIfParamZero(networking.DefaultNodesCIDR, networkingParams.NodesCidr),
Nodes: nodes,
//TODO remove when KIM is ready with setting this value
Type: ptr.String("calico"),
}
Expand Down

0 comments on commit c593ee0

Please sign in to comment.