Skip to content

Commit 0dfd700

Browse files
Test CI and add commented potential fix
1 parent a75099b commit 0dfd700

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
steps:
2121
- name: Checkout sources
2222
uses: actions/checkout@v4
23+
with:
24+
# Ensures the exact PR commit is checked out
25+
ref: ${{ github.event.pull_request.head.sha }}
2326

2427
- name: Start minikube
2528
run: minikube start --memory=max --cpus=max --vm-driver=docker --extra-config=apiserver.service-node-port-range=80-32000 --kubernetes-version=v1.28.9

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
kubectl -n eda get eda eda-demo -o yaml
6363
kubectl wait --for condition=Successful --timeout=-1s -f .ci/eda_v1alpha1_eda.${{ matrix.SCENARIO }}.ci.yaml
6464
65+
# - name: Wait for the EDA API pod to be ready
66+
# run: |
67+
# kubectl wait --for condition=Ready pod --timeout=-1s -l app.kubernetes.io/component=eda-api
68+
6569
- name: Test EDA API via API k8s service
6670
run: |
6771
kubectl port-forward service/eda-demo-api 8081:8000 &

roles/eda/templates/eda-api.deployment.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,11 @@ spec:
399399
mountPath: /var/cache/nginx
400400
- name: nginx-run
401401
mountPath: /var/run
402+
restartPolicy: Always
403+
402404
{% if combined_api.resource_requirements is defined %}
403405
resources: {{ combined_api.resource_requirements }}
404406
{% endif %}
405-
restartPolicy: Always
406407
volumes:
407408
{% if not ui_disabled %}
408409
- name: static-files

0 commit comments

Comments
 (0)