File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ e2e_exclusive_lock() {
1212}
1313
1414e2e_test_install () {
15+ if [ " $( echo " $K8S_VERSION " | tr . ' \n' | head -n 2 | xargs -I @ printf ' %05d' @) " \
16+ -lt " $( echo " 1.24" | tr . ' \n' | xargs -I @ printf ' %05d' @) " ]
17+ then
18+ echo " Skip $SPEC_NAME for Kubernetes older than 1.24"
19+ return
20+ fi
21+
1522 k8s_cleanup_namespace " $OPERATOR_NAMESPACE "
1623 k8s_async_cleanup
1724
Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ e2e_exclusive_lock() {
1212}
1313
1414e2e_test_install () {
15+ if [ " $( echo " $K8S_VERSION " | tr . ' \n' | head -n 2 | xargs -I @ printf ' %05d' @) " \
16+ -lt " $( echo " 1.24" | tr . ' \n' | xargs -I @ printf ' %05d' @) " ]
17+ then
18+ echo " Skip $SPEC_NAME for Kubernetes older than 1.24"
19+ return
20+ fi
21+
1522 k8s_cleanup_namespace " $OPERATOR_NAMESPACE "
1623 k8s_async_cleanup
1724
You can’t perform that action at this time.
0 commit comments