Skip to content

Commit

Permalink
test: exercise single mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilvela committed Mar 28, 2024
1 parent 5fa40cc commit dc7671c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,44 @@ jobs:
kubectl wait --timeout=5m --for=jsonpath='{.status.phase}'="$PHASE" pgdgroups/region-a
kubectl wait --timeout=5m --for=jsonpath='{.status.phase}'="$PHASE" pgdgroups/region-b
kubectl wait --timeout=5m --for=jsonpath='{.status.phase}'="$PHASE" pgdgroups/region-c
deploy-ep4k-single-namespace:
runs-on: ubuntu-22.04
needs:
- change-triage
if: needs.change-triage.outputs.ep4k-changed == 'true'
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.11.3

- name: Create kind cluster
uses: helm/[email protected]

- name: Deploy using helm chart
run: |
helm upgrade --install edb-pg4k --namespace postgresql-operator-system \
--create-namespace charts/edb-postgres-for-kubernetes --wait
- name: Install kubectl
uses: azure/[email protected]

- name: Deploy a cluster in the watched namespace
run: |
kubectl -n single-install apply -f hack/samples/ep4k-cluster.yaml
PHASE="Cluster in healthy state"
kubectl -n single-install wait --timeout=5m --for=jsonpath='{.status.phase}'="$PHASE" clusters/cluster-example
- name: Ignore deploying a cluster in another namespace
run: |
kubectl create ns test-ignore
kubectl -n test-ignore apply -f hack/samples/ep4k-cluster.yaml
kubectl -n test-ignore get pods 2>&1 >/dev/null | grep 'No resources found'

0 comments on commit dc7671c

Please sign in to comment.