From 17e8c0113ca33b6787f9bb12f1b9350ba9e001ca Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Fri, 5 Jul 2024 13:00:12 -0400 Subject: [PATCH] do not run automatic update checks on EC (#4741) --- pkg/updatechecker/updatechecker.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/updatechecker/updatechecker.go b/pkg/updatechecker/updatechecker.go index 21eba44679..b6265fd027 100644 --- a/pkg/updatechecker/updatechecker.go +++ b/pkg/updatechecker/updatechecker.go @@ -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")