Skip to content

Commit

Permalink
chore: handle watch error
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Jul 6, 2023
1 parent e0914e8 commit 3c10228
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/k8s/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ func (c *Client) watchForNewPods(ctx context.Context,
}
return nil
})
case watch.Error:
spew.Dump(event)
// TODO return error
return nil
default:
// no-op
}
Expand Down

0 comments on commit 3c10228

Please sign in to comment.