Skip to content

Commit

Permalink
Fix implementation to handle pod annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
itaispiegel committed Aug 6, 2023
1 parent e9942a5 commit 18d8b7e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/pkg/handler/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ func PerformRollingUpgrade(clients kube.Clients, config util.Config, upgradeFunc
reloaderEnabledValue = annotations[options.ReloaderAutoAnnotation]
}
result := constants.NotUpdated
reloaderEnabled, _ := strconv.ParseBool(reloaderEnabledValue)
reloaderEnabled = reloaderEnabled && foundAuto || !foundAuto && options.AutoReloadAll
if reloaderEnabled {
reloaderEnabled, err := strconv.ParseBool(reloaderEnabledValue)
if (err != nil && options.AutoReloadAll) || (err == nil && (reloaderEnabled || options.AutoReloadAll)) {
result = invokeReloadStrategy(upgradeFuncs, i, config, true)
}

Expand Down

0 comments on commit 18d8b7e

Please sign in to comment.