Skip to content

Commit a7f3630

Browse files
committed
e2e: skip stream to cloudevent / pglambda for k8s < 1.24
1 parent f458804 commit a7f3630

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

stackgres-k8s/e2e/spec/stream-to-cloudevent

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ e2e_exclusive_lock() {
1212
}
1313

1414
e2e_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

stackgres-k8s/e2e/spec/stream-to-pglambda

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ e2e_exclusive_lock() {
1212
}
1313

1414
e2e_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

0 commit comments

Comments
 (0)