Hotfix helm release 0.25.0 #323
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
name: check_helm | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- '*' | |
jobs: | |
check_helm: | |
name: Test Helm Chart | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up yq | |
uses: frenck/action-setup-yq@v1 | |
- name: Setup jq | |
uses: dcarbone/install-jq-action@v3 | |
- name: Setup helm-docs | |
uses: gabe565/setup-helm-docs-action@v1 | |
- name: Setup minikube | |
uses: medyagh/setup-minikube@master | |
with: | |
driver: docker | |
container-runtime: containerd | |
kubernetes-version: v1.31.0 | |
cpus: max | |
memory: max | |
- name: Local Helm Test | |
run: | | |
set -xe | |
minikube kubectl create ns test | |
./dev/generate_helm_chart.sh | |
helm install -n test test-operator ./deploy/helm/clickhouse-operator/ | |
sleep 10 | |
workflow_count=$(kubectl get all --all-namespaces | grep -c "test-operator") | |
configmap_count=$(kubectl get cm --all-namespaces | grep -c "test-operator") | |
if [ "$workflow_count" -lt 4 ]; then | |
echo "Error: Workload count is less than 4. Current count: $workflow_count" | |
exit 1 | |
fi | |
if [ "$configmap_count" -lt 9 ]; then | |
echo "Error: ConfigMap count is less than 9. Current count: $configmap_count" | |
exit 1 | |
fi |