Skip to content

Commit 07dc36e

Browse files
authored
Only send reporting info for embedded clusters (#4766)
1 parent 4b2701d commit 07dc36e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkg/updatechecker/updatechecker.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ func Configure(a *apptypes.App, updateCheckerSpec string) error {
6767
appId := a.GetID()
6868
appSlug := a.GetSlug()
6969
isAirgap := a.GetIsAirgap()
70-
isEC := util.IsEmbeddedCluster()
7170

72-
if isAirgap || isEC {
71+
if isAirgap {
7372
return nil
7473
}
7574

@@ -112,6 +111,14 @@ func Configure(a *apptypes.App, updateCheckerSpec string) error {
112111
jobAppSlug := appSlug
113112

114113
_, err := job.AddFunc(cronSpec, func() {
114+
// don't check for updates if it's an embedded cluster, only send reporting info
115+
if util.IsEmbeddedCluster() {
116+
if err := reporting.GetReporter().SubmitAppInfo(jobAppID); err != nil {
117+
logger.Debugf("failed to submit app info for app %s", jobAppSlug)
118+
}
119+
return
120+
}
121+
115122
logger.Debug("checking updates for app", zap.String("slug", jobAppSlug))
116123

117124
opts := types.CheckForUpdatesOpts{

0 commit comments

Comments
 (0)