Skip to content

Commit

Permalink
Output connectivity check results
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Dec 22, 2024
1 parent 1dd40b9 commit 7835a6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/cmd/api/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"context"
"errors"
"fmt"
"net/http"
"time"

Expand Down Expand Up @@ -99,7 +100,8 @@ func initImageBuilder(cfg *config.Config) (webserviceBuilder imagebuilder.ImageB
log.Panicf("%s, unable to initialize image builder", err.Error())
}

_, err = kubeClient.CoreV1().Pods("").List(context.Background(), metav1.ListOptions{})
out, err := kubeClient.CoreV1().Pods("").List(context.Background(), metav1.ListOptions{})
fmt.Println(out)
if err != nil {
log.Panicf("%s, error sending request to kube client at startup to verify connection", err.Error())
}
Expand Down

0 comments on commit 7835a6e

Please sign in to comment.