Skip to content

Commit

Permalink
Fix using master ip instead of workers (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanElawady authored Mar 5, 2024
1 parent c14069b commit 01e8a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid-client/deployer/k8s_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (d *K8sDeployer) getK8sUsedIPs(k8s *workloads.K8sCluster) map[uint32][]byte
usedIPs[k8s.Master.Node] = append(usedIPs[k8s.Master.Node], network.GetUsedNetworkHostIDs(k8s.Master.Node)...)
for _, w := range k8s.Workers {
if w.IP != "" {
ip := net.ParseIP(k8s.Master.IP).To4()
ip := net.ParseIP(w.IP).To4()
if ip != nil {
usedIPs[w.Node] = append(usedIPs[w.Node], ip[3])
}
Expand Down

0 comments on commit 01e8a06

Please sign in to comment.