Skip to content

Commit

Permalink
do not run automatic update checks on EC (#4741)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Jul 5, 2024
1 parent 60ce092 commit 17e8c01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/updatechecker/updatechecker.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,14 @@ type UpdateCheckRelease struct {
// if "DeployLatest" is set to true, the latest version will be deployed.
// otherwise, if "DeployVersionLabel" is set to true, then the version with the corresponding version label will be deployed (if found).
// otherwise, if "IsAutomatic" is set to true (which means it's an automatic update check), then the version that matches the auto deploy configuration (if enabled) will be deployed.
// Automatic update checks will not run on embedded clusters.
// returns the number of available updates.
func CheckForUpdates(opts CheckForUpdatesOpts) (ucr *UpdateCheckResponse, finalError error) {
if opts.IsAutomatic && util.IsEmbeddedCluster() {
logger.Debugf("skipping automatic update check for app %s because it's running in an embedded cluster", opts.AppID)
return
}

currentStatus, _, err := store.GetTaskStatus("update-download")
if err != nil {
return nil, errors.Wrap(err, "failed to get task status")
Expand Down

0 comments on commit 17e8c01

Please sign in to comment.