Skip to content

Commit 31c6b50

Browse files
committed
fix(upgrade): handle mutated images by comparing the extracted version
Signed-off-by: Khalid Nowaf <f5f@msn.com>
1 parent f74a92f commit 31c6b50

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

upgrade/upgrage_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ func TestIsOldManagerPod(t *testing.T) {
5353
deployManagerImage: "longhornio/longhorn-manager:v1.9.0",
5454
isOld: true,
5555
},
56+
{
57+
runningManagerImage: "some.local.oci:5000/longhornio/longhorn-manager:v1.8.0-xyz423434.4.5.6.4",
58+
deployManagerImage: "longhornio/longhorn-manager:some-non-semver",
59+
isOld: true,
60+
},
61+
{
62+
runningManagerImage: "some.local.oci:5000/longhornio/longhorn-manager:some-non-semver",
63+
deployManagerImage: "longhornio/longhorn-manager:some-non-semver-xx.xx.xx",
64+
isOld: false,
65+
},
5666
}
5767

5868
for _, tt := range tests {

0 commit comments

Comments
 (0)