fix: Add skipEmptyWalArchiveCheck annotation and B2 secret healthcheck to CNPG
All checks were successful
Deploy Cluster / Terraform (push) Successful in 49s
Deploy Cluster / Ansible (push) Successful in 5m22s

- Skip WAL archive emptiness check so recovery works when restoring over
  an existing backup archive in B2
- Add healthCheck for b2-credentials secret in CNPG kustomization to
  prevent recovery from starting before ExternalSecret has synced
This commit is contained in:
2026-03-29 03:15:23 +00:00
parent 6a593fd559
commit 25ba4b7115
2 changed files with 9 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ kind: Cluster
metadata:
name: rancher-db
namespace: cnpg-cluster
annotations:
cnpg.io/skipEmptyWalArchiveCheck: "enabled"
spec:
description: "Rancher external database cluster"
imageName: ghcr.io/cloudnative-pg/postgresql:17.4

View File

@@ -15,3 +15,9 @@ spec:
suspend: false
dependsOn:
- name: addon-cnpg-operator
- name: addon-external-secrets
healthChecks:
- apiVersion: v1
kind: Secret
name: b2-credentials
namespace: cnpg-cluster