update to ip
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m46s

This commit is contained in:
matst80
2024-11-09 14:11:26 +01:00
parent f9d14f1d7f
commit 7e0f75bde5
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ func (k *K8sDiscovery) DiscoverInNamespace(namespace string) ([]string, error) {
}
hosts := make([]string, 0, len(pods.Items))
for _, pod := range pods.Items {
hosts = append(hosts, pod.Name)
hosts = append(hosts, pod.Status.PodIP)
}
return hosts, nil
}