mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
Skip tests that violate version skew policy
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
5d1a37ee32
commit
cd5002ea37
1 changed files with 7 additions and 0 deletions
|
|
@ -314,6 +314,13 @@ test-setup() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
SERVER_MINOR=$(awk -F. '{print $2}' <<<${K3S_IMAGE_SERVER:-$K3S_IMAGE})
|
||||
AGENT_MINOR=$(awk -F. '{print $2}' <<<${K3S_IMAGE_AGENT:-$K3S_IMAGE})
|
||||
if [ $AGENT_MINOR -gt $SERVER_MINOR ]; then
|
||||
echo "Agent minor version cannot be newer than server - not supported by Kubernetes version skew policy"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
local setupFile=./scripts/test-setup-${TEST_TYPE}
|
||||
[ -f $setupFile ] && source $setupFile
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue