ci: add chart testing

This commit is contained in:
Michael Kriese 2023-03-21 14:19:15 +01:00
parent e136187d47
commit 0ac33054a7
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

44
.woodpecker/e2e.yml Normal file
View file

@ -0,0 +1,44 @@
platform: linux/amd64
when:
event:
- pull_request
- push
branch:
- main
- release/**
matrix:
k8s:
# from https://hub.docker.com/r/kindest/node/tags
- v1.25.3 # renovate: kindest
- v1.26.2 # renovate: kindest
pipeline:
create-cluster:
image: alpine:3.17.2
pull: true
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing kind
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- kind create cluster --name chart-testing --node-image kindest/node:${k8s} --wait 60s
chart-testing:
image: alpine:3.17.2
pull: true
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm kubectl kind
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- kubectl get no -o wide
delete-cluster:
image: alpine:3.17.2
pull: true
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing kind
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- kind delete cluster--name chart-testing
when:
status:
- success
- failure