Start testing against Kubernetes 1.24 (#744)
Start testing against Kubernetes 1.24 Update .github/workflows/acceptance.yaml Remove skip csi Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
This commit is contained in:
parent
80560f5564
commit
48f4ab8aa4
4 changed files with 7 additions and 18 deletions
8
.github/workflows/acceptance.yaml
vendored
8
.github/workflows/acceptance.yaml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
kind-k8s-version: [1.16.15, 1.20.15, 1.21.10, 1.22.7, 1.23.4]
|
kind-k8s-version: [1.16.15, 1.20.15, 1.21.12, 1.22.9, 1.23.6, 1.24.1]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -23,11 +23,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
config: test/kind/config.yaml
|
config: test/kind/config.yaml
|
||||||
node_image: kindest/node:v${{ matrix.kind-k8s-version }}
|
node_image: kindest/node:v${{ matrix.kind-k8s-version }}
|
||||||
|
version: v0.14.0
|
||||||
# Skip CSI tests if K8s version < 1.16.x
|
|
||||||
- run: echo K8S_MINOR=$(kubectl version -o json | jq -r .serverVersion.minor) >> $GITHUB_ENV
|
|
||||||
- if: ${{ env.K8S_MINOR < 16 }}
|
|
||||||
run: echo "SKIP_CSI=true" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- run: bats ./test/acceptance -t
|
- run: bats ./test/acceptance -t
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
CHANGES:
|
||||||
|
* Start testing against Kubernetes 1.24
|
||||||
|
|
||||||
## 0.20.1 (May 25th, 2022)
|
## 0.20.1 (May 25th, 2022)
|
||||||
CHANGES:
|
CHANGES:
|
||||||
* `vault-k8s` updated to 0.16.1
|
* `vault-k8s` updated to 0.16.1
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ LOCAL_ACCEPTANCE_TESTS?=false
|
||||||
KIND_CLUSTER_NAME?=vault-helm
|
KIND_CLUSTER_NAME?=vault-helm
|
||||||
|
|
||||||
# kind k8s version
|
# kind k8s version
|
||||||
KIND_K8S_VERSION?=v1.20.2
|
KIND_K8S_VERSION?=v1.24.1
|
||||||
|
|
||||||
# Generate json schema for chart values. See test/README.md for more details.
|
# Generate json schema for chart values. See test/README.md for more details.
|
||||||
values-schema:
|
values-schema:
|
||||||
|
|
|
@ -2,17 +2,9 @@
|
||||||
|
|
||||||
load _helpers
|
load _helpers
|
||||||
|
|
||||||
check_skip_csi() {
|
|
||||||
if [ ! -z ${SKIP_CSI} ]; then
|
|
||||||
skip "Skipping CSI tests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "csi: testing deployment" {
|
@test "csi: testing deployment" {
|
||||||
check_skip_csi
|
|
||||||
|
|
||||||
cd `chart_dir`
|
cd `chart_dir`
|
||||||
|
|
||||||
kubectl delete namespace acceptance --ignore-not-found=true
|
kubectl delete namespace acceptance --ignore-not-found=true
|
||||||
kubectl create namespace acceptance
|
kubectl create namespace acceptance
|
||||||
|
|
||||||
|
@ -58,8 +50,6 @@ check_skip_csi() {
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
teardown() {
|
teardown() {
|
||||||
check_skip_csi
|
|
||||||
|
|
||||||
if [[ ${CLEANUP:-true} == "true" ]]
|
if [[ ${CLEANUP:-true} == "true" ]]
|
||||||
then
|
then
|
||||||
echo "helm/pvc teardown"
|
echo "helm/pvc teardown"
|
||||||
|
|
Loading…
Reference in a new issue