Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
only watch kubernetes if it is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
broadeditz committed Oct 10, 2023
1 parent 858fd6a commit a212c4e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/irc-reader/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ func (c *Controller) Init() error {
}

// watch for changes to OAuth in kubernetes secret
err = c.watchKube(context.Background(), c.updateOauthFromKubeSecret)
if err != nil {
return err
if c.cfg.Kube.Oauthsecret != "" {
err = c.watchKube(context.Background(), c.updateOauthFromKubeSecret)
if err != nil {
return err
}
}

// feed back twitch channels that got disconnected to the IRC
Expand Down

0 comments on commit a212c4e

Please sign in to comment.