Skip to content

Commit 17e8c01

Browse files
authored
do not run automatic update checks on EC (#4741)
1 parent 60ce092 commit 17e8c01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/updatechecker/updatechecker.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,14 @@ type UpdateCheckRelease struct {
182182
// if "DeployLatest" is set to true, the latest version will be deployed.
183183
// otherwise, if "DeployVersionLabel" is set to true, then the version with the corresponding version label will be deployed (if found).
184184
// 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.
185+
// Automatic update checks will not run on embedded clusters.
185186
// returns the number of available updates.
186187
func CheckForUpdates(opts CheckForUpdatesOpts) (ucr *UpdateCheckResponse, finalError error) {
188+
if opts.IsAutomatic && util.IsEmbeddedCluster() {
189+
logger.Debugf("skipping automatic update check for app %s because it's running in an embedded cluster", opts.AppID)
190+
return
191+
}
192+
187193
currentStatus, _, err := store.GetTaskStatus("update-download")
188194
if err != nil {
189195
return nil, errors.Wrap(err, "failed to get task status")

0 commit comments

Comments
 (0)