Skip to content

Commit

Permalink
fix: don't hang forever
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Jul 24, 2022
1 parent 294aa41 commit 2a42390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (c *CronService) runBackgroundService() {
namespaces, err := k8s.Client.ListNamespaces(namespaceSelector)
if err != nil {
logrus.WithError(err).Errorf("failed to list namespaces with selector: %s, abort background-service", namespaceSelector)
running = false
return
}
logrus.Debugf("Discovered %v namespaces", len(namespaces))
Expand Down

0 comments on commit 2a42390

Please sign in to comment.