diff --git a/.github/workflows/kuttl-e2e-test-1.17.yaml b/.github/workflows/kuttl-e2e-test-1.17.yaml new file mode 100644 index 00000000..f0727305 --- /dev/null +++ b/.github/workflows/kuttl-e2e-test-1.17.yaml @@ -0,0 +1,37 @@ +name: kuttl e2e test 1.17 + +on: [ push ] + +jobs: + test: + name: kuttl e2e test 1.17 + runs-on: ubuntu-18.04 + env: + KUTTL: /usr/local/bin/kubectl-kuttl + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '1.17' + - name: Install kuttl and kubectl + run: | + sudo curl -Lo $KUTTL https://github.com/kudobuilder/kuttl/releases/download/v0.11.1/kubectl-kuttl_0.11.1_linux_x86_64 + sudo chmod +x $KUTTL + sudo curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl + sudo chmod +x kubectl + - name: Build and prepare manifests + run: make manifests + - name: Build container + run: make operator-image + - name: Run kuttl 1.17 + run: kubectl-kuttl test --config e2e/kuttl/operator-deployment-1.17.yaml + + - uses: actions/upload-artifact@v3 + if: ${{ always() }} + with: + name: kind-logs + path: kind-logs-* diff --git a/Makefile b/Makefile index e46fd60a..2bb9f119 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ MIN_KUBE_VERSION ?= 1.17.0 # Generate kuttl e2e tests for the following storageos/kind-node versions # TEST_KIND_NODES is not intended to be updated manually. # Please run 'LATEST_KIND_NODE= make update-kind-nodes'. -TEST_KIND_NODES ?= 1.19.0,1.20.5,1.21.0,1.22.3,1.23.0 +TEST_KIND_NODES ?= 1.17.0,1.19.0,1.20.5,1.21.0,1.22.3,1.23.0 # bundle channels used in the bundle. # Add a new line here if you would like to change its default config. (E.g --channels="candidate,fast,stable") @@ -257,7 +257,7 @@ TMP_DIR=$$(mktemp -d) ;\ cd $$TMP_DIR ;\ go mod init tmp ;\ echo "Downloading $(2)" ;\ -GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\ +GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\ rm -rf $$TMP_DIR ;\ } endef diff --git a/e2e/kind/kind-config-1.17.yaml b/e2e/kind/kind-config-1.17.yaml new file mode 100644 index 00000000..d414e72b --- /dev/null +++ b/e2e/kind/kind-config-1.17.yaml @@ -0,0 +1,5 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha3 +nodes: +- role: control-plane + image: storageos/kind-node:v1.17.0 diff --git a/e2e/kuttl/operator-deployment-1.17.yaml b/e2e/kuttl/operator-deployment-1.17.yaml new file mode 100644 index 00000000..f2dd06d3 --- /dev/null +++ b/e2e/kuttl/operator-deployment-1.17.yaml @@ -0,0 +1,10 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestSuite +testDirs: +- ./e2e/tests/deployment/stable +kindConfig: e2e/kind/kind-config-1.17.yaml +startKIND: true +kindNodeCache: true +kindContainers: + - storageos/operator:v2.8.3-1.17 +timeout: 800 diff --git a/e2e/kuttl/operator-deployment-1.19.yaml b/e2e/kuttl/operator-deployment-1.19.yaml index 4543a914..e5f79d8d 100644 --- a/e2e/kuttl/operator-deployment-1.19.yaml +++ b/e2e/kuttl/operator-deployment-1.19.yaml @@ -6,5 +6,5 @@ kindConfig: e2e/kind/kind-config-1.19.yaml startKIND: true kindNodeCache: true kindContainers: - - storageos/operator:v2.8.2 + - storageos/operator:v2.8.3-1.17 timeout: 800 diff --git a/e2e/kuttl/operator-deployment-1.20.yaml b/e2e/kuttl/operator-deployment-1.20.yaml index becf867b..1558a218 100644 --- a/e2e/kuttl/operator-deployment-1.20.yaml +++ b/e2e/kuttl/operator-deployment-1.20.yaml @@ -6,5 +6,5 @@ kindConfig: e2e/kind/kind-config-1.20.yaml startKIND: true kindNodeCache: true kindContainers: - - storageos/operator:v2.8.2 + - storageos/operator:v2.8.3-1.17 timeout: 800 diff --git a/e2e/kuttl/operator-deployment-1.21.yaml b/e2e/kuttl/operator-deployment-1.21.yaml index 28c9b239..b6084cb3 100644 --- a/e2e/kuttl/operator-deployment-1.21.yaml +++ b/e2e/kuttl/operator-deployment-1.21.yaml @@ -6,5 +6,5 @@ kindConfig: e2e/kind/kind-config-1.21.yaml startKIND: true kindNodeCache: true kindContainers: - - storageos/operator:v2.8.2 + - storageos/operator:v2.8.3-1.17 timeout: 800 diff --git a/e2e/kuttl/operator-deployment-1.22.yaml b/e2e/kuttl/operator-deployment-1.22.yaml index eaf24e4c..fe78b16e 100644 --- a/e2e/kuttl/operator-deployment-1.22.yaml +++ b/e2e/kuttl/operator-deployment-1.22.yaml @@ -6,5 +6,5 @@ kindConfig: e2e/kind/kind-config-1.22.yaml startKIND: true kindNodeCache: true kindContainers: - - storageos/operator:v2.8.2 + - storageos/operator:v2.8.3-1.17 timeout: 800 diff --git a/e2e/kuttl/operator-deployment-1.23.yaml b/e2e/kuttl/operator-deployment-1.23.yaml index b7fdf2aa..33cd3781 100644 --- a/e2e/kuttl/operator-deployment-1.23.yaml +++ b/e2e/kuttl/operator-deployment-1.23.yaml @@ -6,5 +6,5 @@ kindConfig: e2e/kind/kind-config-1.23.yaml startKIND: true kindNodeCache: true kindContainers: - - storageos/operator:v2.8.2 + - storageos/operator:v2.8.3-1.17 timeout: 800 diff --git a/hack/generate-tests.sh b/hack/generate-tests.sh index bcd92287..c9700709 100755 --- a/hack/generate-tests.sh +++ b/hack/generate-tests.sh @@ -48,7 +48,7 @@ kindConfig: e2e/kind/kind-config-${major}.yaml startKIND: true kindNodeCache: true kindContainers: - - storageos/operator:v2.8.2 + - storageos/operator:v2.8.3-1.17 timeout: 800 EOF