Skip to content
Snippets Groups Projects

Test Helm chart in CI pipeline

+ 29
0
@@ -10,6 +10,7 @@ stages:
@@ -10,6 +10,7 @@ stages:
- test
- test
- check
- check
- deploy
- deploy
 
- post-deploy
default:
default:
tags:
tags:
@@ -51,6 +52,34 @@ lint-helm:
@@ -51,6 +52,34 @@ lint-helm:
entrypoint: [""]
entrypoint: [""]
script: helm lint helm/
script: helm lint helm/
 
test-helm:
 
stage: post-deploy
 
extends: .dind
 
needs:
 
- lint-helm
 
# - deploy-theodolite
 
variables:
 
KUBECTL: v1.21.3
 
K3D: v4.4.8
 
before_script:
 
- apk add -U wget bash curl
 
# install kubectl
 
- wget -O /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL}/bin/linux/amd64/kubectl
 
- chmod +x /usr/local/bin/kubectl
 
# install k3d
 
- wget -q -O - https://raw.githubusercontent.com/rancher/k3d/${K3D}/install.sh | bash
 
- k3d help
 
- k3d cluster create testgitlabci --agents 1 --wait -p "30000:30000@agent[0]"
 
# show cluster info
 
- kubectl cluster-info
 
script:
 
# Display initial pods, etc.
 
- kubectl get nodes -o wide
 
- kubectl get pods --all-namespaces -o wide
 
- kubectl get services --all-namespaces -o wide
 
after_script:
 
- k3d cluster delete testgitlabci
 
# Theodolite Benchmarks
# Theodolite Benchmarks
Loading