Skip to content

Commit f3825e0

Browse files
committed
Fix: Upgrade Helm setup to v5 and enhance ExaMon deployment workflow with phased deployment and readiness checks for K8ssandra operators.
1 parent 265b3e1 commit f3825e0

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/k8s-test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
2727

2828
- name: Install Helm
29-
uses: azure/setup-helm@v4
29+
uses: azure/setup-helm@v5
3030
with:
3131
version: 'latest'
3232

@@ -60,11 +60,31 @@ jobs:
6060
- name: Update Helm dependencies
6161
run: helm dependency update deploy/helm/examon
6262

63-
- name: Deploy ExaMon
63+
- name: "Deploy ExaMon (phase 1: operators only)"
6464
run: |
6565
helm install examon deploy/helm/examon \
6666
-f deploy/helm/examon/values-local.yaml \
67-
-n examon --create-namespace --timeout 15m
67+
--set cassandra.enabled=false \
68+
-n examon --create-namespace --timeout 10m
69+
70+
- name: Wait for K8ssandra operator webhook
71+
run: |
72+
echo "Waiting for K8ssandra operator to be ready..."
73+
kubectl wait --for=condition=Ready pod \
74+
-l app.kubernetes.io/name=k8ssandra-operator \
75+
-n examon --timeout=120s
76+
kubectl wait --for=condition=Ready pod \
77+
-l app.kubernetes.io/name=cass-operator \
78+
-n examon --timeout=120s
79+
echo "Waiting for webhook endpoint registration..."
80+
sleep 10
81+
echo "Operators ready."
82+
83+
- name: "Deploy ExaMon (phase 2: full stack with Cassandra)"
84+
run: |
85+
helm upgrade examon deploy/helm/examon \
86+
-f deploy/helm/examon/values-local.yaml \
87+
-n examon --timeout 15m
6888
6989
- name: Wait for Cassandra to be ready
7090
run: |

0 commit comments

Comments
 (0)