From 133a1c7f28b74756f558c65a2d99345271dc8ce7 Mon Sep 17 00:00:00 2001 From: Chris Harden Date: Mon, 28 Oct 2024 12:04:14 -0600 Subject: [PATCH] fix: postgress-operator validation (#67) ## Description The validation for the postgres-operator component was checking for resources in `postgres` rather than `postgres-operator` ... ## Related Issue Fixes #N/A ## Type of change - [ x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x ] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-package-postgres-operator/blob/main/CONTRIBUTING.md#developer-workflow) followed --------- Signed-off-by: Chris Harden Co-authored-by: Wayne Starr Release-As: v1.13.0-uds.3 --- common/zarf.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/zarf.yaml b/common/zarf.yaml index cb5a3ce..10d57d3 100644 --- a/common/zarf.yaml +++ b/common/zarf.yaml @@ -34,9 +34,15 @@ components: wait: cluster: kind: packages.uds.dev - name: postgres - namespace: postgres + name: postgres-operator + namespace: postgres-operator condition: "'{.status.phase}'=Ready" + - description: Validate Postgres Package + maxTotalSeconds: 300 + cmd: | + if ./zarf tools kubectl get packages.uds.dev postgres -n postgres; then + ./zarf tools wait-for packages.uds.dev postgres -n postgres '{.status.phase}'=Ready + fi - description: Postgres Operator to be Healthy maxTotalSeconds: 90 wait: