Skip to content

Commit

Permalink
Expand chainsaw test
Browse files Browse the repository at this point in the history
  • Loading branch information
lentzi90 committed Jan 5, 2025
1 parent 48face3 commit 3ebe89e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/kind-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ jobs:

- name: Chainsaw test
run: chainsaw test
env:
BITWARDEN_ACCESS_TOKEN: ${{ secrets.BITWARDEN_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/kustomize-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
kustomize-sops-build:
kustomize-build:
strategy:
matrix:
path:
Expand Down
49 changes: 49 additions & 0 deletions chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,52 @@ spec:
# and that this element status is `True`
(conditions[?type == 'Available']):
- status: 'True'
- try:
# Apply the app of apps
- script:
timeout: 10s
content: kubectl apply -k apps/kind
# Ensure that the external-secrets are operational before continuing
- assert:
timeout: 2m
resource:
apiVersion: apps/v1
kind: Deployment
metadata:
name: external-secrets-webhook
namespace: external-secrets
status:
(conditions[?type == 'Available']):
- status: 'True'
# Create secret store and token secret
- script:
timeout: 10s
content: |
kubectl -n external-secrets create secret generic bitwarden-access-token --from-literal=token=${BITWARDEN_ACCESS_TOKEN}
kubectl apply -f secret-store/test-secretstore.yaml
# Verify that nextcloud becomes ready
- assert:
timeout: 5m
resource:
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud
namespace: nextcloud
status:
(conditions[?type == 'Available']):
- status: 'True'
# Verify app of apps
- assert:
timeout: 5m
resource:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: apps
namespace: argocd
status:
health:
status: Healthy
sync:
status: Synced

0 comments on commit 3ebe89e

Please sign in to comment.