From dcb2efd7ae489f12271dd098d12b052a072a1e54 Mon Sep 17 00:00:00 2001 From: Paul Nicolas Date: Fri, 30 Jun 2023 17:21:25 +0200 Subject: [PATCH] fix: fix operator pre upgrade versions (#403) --- components/operator/internal/modules/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/operator/internal/modules/module.go b/components/operator/internal/modules/module.go index cd93a4498c..f5787dc772 100644 --- a/components/operator/internal/modules/module.go +++ b/components/operator/internal/modules/module.go @@ -283,7 +283,7 @@ func (module Module) preInstall(ctx Context, deployer *ResourceDeployer, portAll var chosenVersion Version for _, version := range versions { - if !moduleContext.HasVersionHigher(version) { + if !moduleContext.HasVersionHigherOrEqual(version) { break } chosenVersion = module.Versions[version]