Skip to content

Commit

Permalink
Merge pull request #29 from metal-stack/fix-token-updater
Browse files Browse the repository at this point in the history
Fix token updater shutting down on error.
  • Loading branch information
majst01 authored Apr 3, 2023
2 parents 70794b8 + 3384858 commit 0c2ab05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v2/helper/shoot_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ func (s *ShootAccessTokenUpdater) UpdateContinuously(log logr.Logger, stop conte
cancel()
if err != nil {
log.Error(err, "unable to read token secret")
break
continue
}

err = os.WriteFile(s.s.tokenPath, []byte(token), 0600)
if err != nil {
log.Error(err, "unable to update token file")
break
continue
}

log.Info("updated token file successfully, next update in 5 minutes")
Expand Down

0 comments on commit 0c2ab05

Please sign in to comment.