update logs
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m45s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m45s
This commit is contained in:
@@ -36,7 +36,6 @@ func (k *K8sDiscovery) DiscoverInNamespace(namespace string) ([]string, error) {
|
|||||||
hosts := make([]string, 0, len(pods.Items))
|
hosts := make([]string, 0, len(pods.Items))
|
||||||
for _, pod := range pods.Items {
|
for _, pod := range pods.Items {
|
||||||
hosts = append(hosts, pod.Name)
|
hosts = append(hosts, pod.Name)
|
||||||
log.Printf("Found pod %s\n", pod.Name)
|
|
||||||
}
|
}
|
||||||
return hosts, nil
|
return hosts, nil
|
||||||
}
|
}
|
||||||
@@ -92,6 +91,10 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, d Discovery) (*Synced
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, h := range hosts {
|
for _, h := range hosts {
|
||||||
|
if h == hostname {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
log.Printf("Discovered host %s\n", h)
|
||||||
err := pool.AddRemote(h)
|
err := pool.AddRemote(h)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error adding remote %s: %v\n", h, err)
|
log.Printf("Error adding remote %s: %v\n", h, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user