Skip to content

Commit

Permalink
fix: fix operator pre upgrade versions (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Jun 30, 2023
1 parent 4bd9696 commit dcb2efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/operator/internal/modules/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

1 comment on commit dcb2efd

@vercel
Copy link

@vercel vercel bot commented on dcb2efd Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.