Skip to content

Commit

Permalink
Updated E2E-chaoscenter workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Dhanush0369 <[email protected]>
  • Loading branch information
Dhanush0369 committed Jun 3, 2024
1 parent 0ffb65b commit ce71d5f
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/E2E-chaoscenter-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,27 @@ jobs:
steps:
- name: Add litmus Chaos Repository
run: helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/

- name: Start minikube
run: minikube start

- name: Apply Litmus manifest
run: |
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/chaoscenter/manifests/litmus-cluster-scope.yaml

- name: Wait for Litmus pods to be ready
run: |
sleep 30
kubectl wait --for=condition=Ready pods --all --namespace=litmus --timeout=300s
- name: Create litmus namespace
run: kubectl create ns litmus

- name: Install Litmus
run: |
helm install chaos litmuschaos/litmus \
--namespace=litmus \
--set portal.frontend.service.type=NodePort
- name: Wait for pods to be ready
run: |
sleep 30s
while [[ $(kubectl get pods -n litmus --no-headers | grep -v 'Running\|Completed' | wc -l) -gt 0 ]]; do
echo "Waiting for pods to be ready..."
kubectl get pods -n litmus
sleep 10
done
echo "All pods are ready!"
- name: Extract Minikube IP and NodePort
id: extract-urls
Expand All @@ -44,8 +53,4 @@ jobs:
start: npm start
working-directory: chaoscenter
env:
CYPRESS_baseUrl: http://${{ env.MINIKUBE_IP }}:${{ env.NODE_PORT }}




CYPRESS_baseUrl: http://${{ env.MINIKUBE_IP }}:${{ env.NODE_PORT }}

0 comments on commit ce71d5f

Please sign in to comment.