From 8bc7575fc3be2b72c72ba4899f465762a57c55ea Mon Sep 17 00:00:00 2001 From: Phan Le Date: Tue, 24 Sep 2024 19:08:11 -0700 Subject: [PATCH] fix: aggregate "*-dev-*" versions into single "dev" version This will prevent the upgrade responder from having too many tags which can be a performance issue longhorn-9522 Signed-off-by: Phan Le --- controller/setting_controller.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/controller/setting_controller.go b/controller/setting_controller.go index 21231bce84..160c82aff4 100644 --- a/controller/setting_controller.go +++ b/controller/setting_controller.go @@ -1400,8 +1400,13 @@ func (sc *SettingController) CheckLatestAndStableLonghornVersions() (string, str if err != nil { return "", "", errors.Wrap(err, "failed to get extra info for upgrade checker") } + + version := sc.version + if strings.Contains(version, "dev") { + version = "dev" + } req := &CheckUpgradeRequest{ - AppVersion: sc.version, + AppVersion: version, ExtraTagInfo: extraTagInfo, ExtraFieldInfo: extraFieldInfo, }