Skip to content

Commit

Permalink
Add readiness check
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Schmitz von Hülst <[email protected]>
  • Loading branch information
moritzschmitz-oviva committed Feb 14, 2024
1 parent 8f58c63 commit 6ab0b37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/tests/java-spiffe-helper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ spec:
- name: java-spiffe-helper
image: java-spiffe-helper:test
imagePullPolicy: IfNotPresent
readinessProbe:
initialDelaySeconds: 15
exec:
command:
- ls
- /tmp/truststore.p12
volumeMounts:
- name: properties
mountPath: /app/java-spiffe-helper.properties
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
- run: helm upgrade --install -n spire-server spire spire --repo https://spiffe.github.io/helm-charts-hardened/ -f .github/tests/spire-values.yaml
- run: docker exec kind-control-plane crictl images
- run: kubectl apply -f .github/tests/java-spiffe-helper.yaml
- run: kubectl wait pod/java-spiffe-helper --for condition=Ready --timeout=30s
- run: kubectl wait pod/java-spiffe-helper --for condition=Ready --timeout=90s
- run: kubectl logs pod/java-spiffe-helper
- if: ${{ failure() }}
run: kubectl logs -lapp=java-spiffe-helper > java-spiffe-helper.log
run: kubectl logs pod/java-spiffe-helper > java-spiffe-helper.log
- if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 6ab0b37

Please sign in to comment.