Skip to content
Snippets Groups Projects
Unverified Commit b3313484 authored by Julian Tölle's avatar Julian Tölle Committed by GitHub
Browse files

feat: test against Kubernetes 1.28 and drop 1.24 (#491)

parent 8888edcd
No related branches found
No related tags found
No related merge requests found
...@@ -16,14 +16,14 @@ jobs: ...@@ -16,14 +16,14 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- k3s: v1.24
k8s-test: v1.24.13
- k3s: v1.25 - k3s: v1.25
k8s-test: v1.25.9 k8s-test: v1.25.13
- k3s: v1.26 - k3s: v1.26
k8s-test: v1.26.4 k8s-test: v1.26.8
- k3s: v1.27 - k3s: v1.27
k8s-test: v1.27.1 k8s-test: v1.27.5
- k3s: v1.28
k8s-test: v1.28.1
steps: steps:
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
...@@ -44,7 +44,7 @@ jobs: ...@@ -44,7 +44,7 @@ jobs:
kubectl kubectl
skaffold skaffold
helm: v3.11.2 helm: v3.11.2
kubectl: v1.26.3 kubectl: v1.28.1
skaffold: v2.3.0 skaffold: v2.3.0
- name: Run tests - name: Run tests
......
...@@ -165,7 +165,7 @@ $ kubectl apply -f https://raw.githubusercontent.com/hetznercloud/csi-driver/v2. ...@@ -165,7 +165,7 @@ $ kubectl apply -f https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.
## Integration with Root Servers ## Integration with Root Servers
Root servers can be part of the cluster, but the CSI plugin doesn't work there. Taint the root server as follows to skip that node for the daemonset. Root servers can be part of the cluster, but the CSI plugin doesn't work there. Taint the root server as follows to skip that node for the DaemonSet.
```bash ```bash
kubectl label nodes <node name> instance.hetzner.cloud/is-root-server=true kubectl label nodes <node name> instance.hetzner.cloud/is-root-server=true
...@@ -182,10 +182,11 @@ related only to an unsupported version. ...@@ -182,10 +182,11 @@ related only to an unsupported version.
| Kubernetes | CSI Driver | Deployment File | | Kubernetes | CSI Driver | Deployment File |
|------------|-----------:|--------------------------------------------------------------------------------------------------:| |------------|-----------:|--------------------------------------------------------------------------------------------------:|
| 1.27 | 2.3.2 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.3.2/deploy/kubernetes/hcloud-csi.yml | | 1.28 | 2.4.0+ | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.4.0/deploy/kubernetes/hcloud-csi.yml |
| 1.26 | 2.3.2 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.3.2/deploy/kubernetes/hcloud-csi.yml | | 1.27 | 2.4.0+ | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.4.0/deploy/kubernetes/hcloud-csi.yml |
| 1.25 | 2.3.2 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.3.2/deploy/kubernetes/hcloud-csi.yml | | 1.26 | 2.4.0+ | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.4.0/deploy/kubernetes/hcloud-csi.yml |
| 1.24 | 2.3.2 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.3.2/deploy/kubernetes/hcloud-csi.yml | | 1.25 | 2.4.0+ | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.4.0/deploy/kubernetes/hcloud-csi.yml |
| 1.24 | 2.4.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.4.0/deploy/kubernetes/hcloud-csi.yml |
| 1.23 | 2.2.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.2.0/deploy/kubernetes/hcloud-csi.yml | | 1.23 | 2.2.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.2.0/deploy/kubernetes/hcloud-csi.yml |
| 1.22 | 1.6.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.6.0/deploy/kubernetes/hcloud-csi.yml | | 1.22 | 1.6.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.6.0/deploy/kubernetes/hcloud-csi.yml |
| 1.21 | 1.6.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.6.0/deploy/kubernetes/hcloud-csi.yml | | 1.21 | 1.6.0 | https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.6.0/deploy/kubernetes/hcloud-csi.yml |
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -uex -o pipefail set -uex -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
k8s_test_version="${K8S_TEST_VERSION:-v1.26.3}" k8s_test_version="${K8S_TEST_VERSION:-v1.28.1}"
mkdir -p "${SCRIPT_DIR}/test-binaries" mkdir -p "${SCRIPT_DIR}/test-binaries"
# TODO: Read linux-amd64 from env # TODO: Read linux-amd64 from env
...@@ -13,7 +13,7 @@ ginkgo="${SCRIPT_DIR}/test-binaries/ginkgo" ...@@ -13,7 +13,7 @@ ginkgo="${SCRIPT_DIR}/test-binaries/ginkgo"
ginkgo_flags="-v --flakeAttempts=2" ginkgo_flags="-v --flakeAttempts=2"
e2e="${SCRIPT_DIR}/test-binaries/e2e.test" e2e="${SCRIPT_DIR}/test-binaries/e2e.test"
e2e_flags="-storage.testdriver=${SCRIPT_DIR}/testdriver-1.23.yaml" e2e_flags="-storage.testdriver=${SCRIPT_DIR}/testdriver-1.25.yaml"
echo "Executing parallel tests" echo "Executing parallel tests"
${ginkgo} ${ginkgo_flags} \ ${ginkgo} ${ginkgo_flags} \
......
...@@ -8,7 +8,7 @@ DriverInfo: ...@@ -8,7 +8,7 @@ DriverInfo:
Capabilities: Capabilities:
# Available capabilities are defined in the kubernetes repositories, make # Available capabilities are defined in the kubernetes repositories, make
# sure to select the corresponding k8s version: # sure to select the corresponding k8s version:
# https://github.com/kubernetes/kubernetes/blob/release-1.23/test/e2e/storage/framework/testdriver.go#L150 # https://github.com/kubernetes/kubernetes/blob/release-1.25/test/e2e/storage/framework/testdriver.go#L150
persistence: true persistence: true
block: true block: true
fsGroup: true fsGroup: true
...@@ -21,6 +21,7 @@ DriverInfo: ...@@ -21,6 +21,7 @@ DriverInfo:
controllerExpansion: true controllerExpansion: true
nodeExpansion: true nodeExpansion: true
onlineExpansion: false onlineExpansion: false
offlineExpansion: true
volumeLimits: false volumeLimits: false
singleNodeVolume: true singleNodeVolume: true
topology: true topology: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment