Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
update go install and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Sep 28, 2022
1 parent e2935d8 commit e8c1f9b
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 8 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/kuttl-e2e-test-1.17.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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-*
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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=<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")
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions e2e/kind/kind-config-1.17.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha3
nodes:
- role: control-plane
image: storageos/kind-node:v1.17.0
10 changes: 10 additions & 0 deletions e2e/kuttl/operator-deployment-1.17.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion e2e/kuttl/operator-deployment-1.19.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion e2e/kuttl/operator-deployment-1.20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion e2e/kuttl/operator-deployment-1.21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion e2e/kuttl/operator-deployment-1.22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion e2e/kuttl/operator-deployment-1.23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion hack/generate-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e8c1f9b

Please sign in to comment.