Skip to content

Commit 5e98589

Browse files
simplify version mismatch validation logic
1 parent 82127b1 commit 5e98589

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

start

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,7 @@ function validate_persistent_volume_version() {
342342
local init_revision=$(< "$version_file" jq -r '.revision')
343343
local init_image=$(< "$version_file" jq -r '.image')
344344

345-
# Check for mismatch: compare revisions, and images if both are set
346-
local mismatch=false
347345
if [ "$init_revision" != "$REVISION" ]; then
348-
mismatch=true
349-
elif [ -n "$init_image" ] && [ -n "$IMAGE_NAME" ] && [ "$init_image" != "$IMAGE_NAME" ]; then
350-
mismatch=true
351-
fi
352-
353-
if [ "$mismatch" = "true" ]; then
354346
echo ""
355347
echo "${red}${bold}╔══════════════════════════════════════════════════════════════════╗${clear}"
356348
echo "${red}${bold}║ ⚠️ VERSION MISMATCH WARNING ║${clear}"

0 commit comments

Comments
 (0)