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))
|
||||
for _, pod := range pods.Items {
|
||||
hosts = append(hosts, pod.Name)
|
||||
log.Printf("Found pod %s\n", pod.Name)
|
||||
}
|
||||
return hosts, nil
|
||||
}
|
||||
@@ -92,6 +91,10 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, d Discovery) (*Synced
|
||||
return
|
||||
}
|
||||
for _, h := range hosts {
|
||||
if h == hostname {
|
||||
continue
|
||||
}
|
||||
log.Printf("Discovered host %s\n", h)
|
||||
err := pool.AddRemote(h)
|
||||
if err != nil {
|
||||
log.Printf("Error adding remote %s: %v\n", h, err)
|
||||
|
||||
Reference in New Issue
Block a user