Skip to content

Commit

Permalink
Remove testing for k8s 1.18 as written in our Versioning policy. (#199)
Browse files Browse the repository at this point in the history
Add Testing for 1.21.0

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
  • Loading branch information
LKaemmerling committed Apr 20, 2021
1 parent cf4e7e4 commit c74a95b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_e2e.yml
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
k8s: [ 1.18.16, 1.19.8, 1.20.4 ]
k8s: [ 1.19.10, 1.20.6, 1.21.0 ]
name: k8s ${{ matrix.k8s }}
steps:
- uses: actions/setup-go@v2
Expand Down
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Expand Up @@ -33,17 +33,17 @@ unit:
tags:
- hc-bladerunner-build

k8s 1.18:
k8s 1.19:
<<: *k8se2e
variables:
K8S_VERSION: 1.18.16
K8S_VERSION: 1.19.10

k8s 1.19:
k8s 1.20:
<<: *k8se2e
variables:
K8S_VERSION: 1.19.8
K8S_VERSION: 1.20.6

k8s 1.20:
k8s 1.21:
<<: *k8se2e
variables:
K8S_VERSION: 1.20.4
K8S_VERSION: 1.21.0
22 changes: 10 additions & 12 deletions README.md
Expand Up @@ -74,6 +74,14 @@ enabling you to use ReadWriteOnce Volumes within Kubernetes. Please note that th
kubectl exec -it my-csi-app -- /bin/sh
```

## 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.

```bash
kubectl taint node <node name> instance.hetzner.cloud/is-root-server:true
```

## Versioning policy

We aim to support the latest three versions of Kubernetes. After a new
Expand All @@ -85,10 +93,9 @@ related only to an unsupported version.

| Kubernetes | CSI Driver | Deployment File |
| ---------- | -------------:| --------------------------------------------------------------------------------------------------:|
| 1.21 | master | https://raw.githubusercontent.com/hetznercloud/csi-driver/master/deploy/kubernetes/hcloud-csi.yml |
| 1.20 | master | https://raw.githubusercontent.com/hetznercloud/csi-driver/master/deploy/kubernetes/hcloud-csi.yml |
| 1.19 | 1.5.1, master | https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.5.1/deploy/kubernetes/hcloud-csi.yml |
| 1.18 | 1.5.1, master | https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.5.1/deploy/kubernetes/hcloud-csi.yml |


## E2E Tests

Expand All @@ -106,7 +113,7 @@ will create volumes that will be billed.
1. Configure your environment correctly
```bash
export HCLOUD_TOKEN=<specifiy a project token>
export K8S_VERSION=1.20.0 # The specific (latest) version is needed here
export K8S_VERSION=1.21.0 # The specific (latest) version is needed here
export USE_SSH_KEYS=key1,key2 # Name or IDs of your SSH Keys within the Hetzner Cloud, the servers will be accessable with that keys
```
2. Run the tests
Expand All @@ -118,15 +125,6 @@ The tests will now run, this will take a while (~30 min).

**If the tests fail, make sure to clean up the project with the Hetzner Cloud Console or the hcloud cli.**

## 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.

```bash
kubectl taint node <node name> instance.hetzner.cloud/is-root-server:true
```


## License

MIT license

0 comments on commit c74a95b

Please sign in to comment.