-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade kube webhook certgen to support kubernetes 1.22. * Other fixes to better support kubernetes 1.22. * Run e2e tests for kubernetes 1.21 and 1.22. * Fix helm install commands. * Regenerate CRD with updated controller-gen. Remove deprecated `trivialVersions` CRD generation option. Signed-off-by: Tomash Sidei <[email protected]>
- Loading branch information
Showing
12 changed files
with
576 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,47 @@ jobs: | |
docker build -f Dockerfile.varnishd -t ibmcom/varnish:local . | ||
docker build -f Dockerfile.controller -t ibmcom/varnish-controller:local . | ||
docker build -f Dockerfile.exporter -t ibmcom/varnish-metrics-exporter:local . | ||
- name: Create k8s Kind Cluster v1.22.0 | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.11.1 | ||
cluster_name: e2e-tests | ||
node_image: kindest/node:v1.22.0@sha256:b8bda84bb3a190e6e028b1760d277454a72267a5454b57db34437c34a588d047 | ||
- name: create namespace | ||
run: kubectl create namespace varnish-operator | ||
- name: load images | ||
run: | | ||
kind load --name e2e-tests docker-image ibmcom/varnish-operator:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish-controller:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish-metrics-exporter:local | ||
- name: install operator | ||
id: helm | ||
run: helm install varnish-operator --debug --namespace=varnish-operator varnish-operator --wait --set container.imagePullPolicy=Never --set container.image=ibmcom/varnish-operator:local | ||
- name: run tests | ||
run: go test -count=1 ./tests #-count=1 is to disable tests caching. | ||
- name: delete cluster | ||
run: kind delete cluster --name=e2e-tests | ||
- name: Create k8s Kind Cluster v1.21.1 | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.11.1 | ||
cluster_name: e2e-tests | ||
node_image: kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 | ||
- name: create namespace | ||
run: kubectl create namespace varnish-operator | ||
- name: load images | ||
run: | | ||
kind load --name e2e-tests docker-image ibmcom/varnish-operator:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish-controller:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish-metrics-exporter:local | ||
- name: install operator | ||
run: helm install varnish-operator --debug --namespace=varnish-operator varnish-operator --wait --set container.imagePullPolicy=Never --set container.image=ibmcom/varnish-operator:local | ||
- name: run tests | ||
run: go test -count=1 ./tests #-count=1 is to disable tests caching. | ||
- name: delete cluster | ||
run: kind delete cluster --name=e2e-tests | ||
- name: Create k8s Kind Cluster v1.20.0 | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -37,7 +78,6 @@ jobs: | |
kind load --name e2e-tests docker-image ibmcom/varnish-controller:local | ||
kind load --name e2e-tests docker-image ibmcom/varnish-metrics-exporter:local | ||
- name: install operator | ||
id: helm | ||
run: helm install varnish-operator --debug --namespace=varnish-operator varnish-operator --wait --set container.imagePullPolicy=Never --set container.image=ibmcom/varnish-operator:local | ||
- name: run tests | ||
run: go test -count=1 ./tests #-count=1 is to disable tests caching. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.