2 Commits

Author SHA1 Message Date
matst80
f9d14f1d7f update logs
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m45s
2024-11-09 14:01:03 +01:00
matst80
c7306bb526 better logs 2024-11-09 13:59:44 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build docker image
run: docker build -t registry.knatofs.se/go-cart-actor .
run: docker build --progress=plain -t registry.knatofs.se/go-cart-actor .
- name: Push to registry
run: docker push registry.knatofs.se/go-cart-actor
- name: Deploy to Kubernetes

View File

@@ -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)