Skip to content

Commit

Permalink
fix(upgrade): handle mutated images by comparing the extracted version
Browse files Browse the repository at this point in the history
  • Loading branch information
Khalid Almutiri authored and Khalid-Nowaf committed Jan 22, 2025
1 parent ba874c2 commit f9d187e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions upgrade/upgrage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ func TestIsOldManagerPod(t *testing.T) {
deployManagerImage: "longhornio/longhorn-manager:v1.9.0",
isOld: true,
},
{
runningManagerImage: "some.local.oci:5000/longhornio/longhorn-manager:v1.8.0-xyz423434.4.5.6.4",
deployManagerImage: "longhornio/longhorn-manager:some-non-semver",
isOld: true,
},
{
runningManagerImage: "some.local.oci:5000/longhornio/longhorn-manager:some-non-semver",
deployManagerImage: "longhornio/longhorn-manager:some-non-semver-xx.xx.xx",
isOld: false,
},
}

for _, tt := range tests {
Expand Down

0 comments on commit f9d187e

Please sign in to comment.