-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1533 from Altinity/fix_helm_release
Add helm local testing github actions
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: check_helm | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test_helm: | ||
name: Test Helm Chart | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- 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 | ||
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 |
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