From 0fdadcc3dd48bf9a55b02cdb182a292190668214 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 10 May 2026 19:58:11 +0000 Subject: [PATCH] =?UTF-8?q?dbaas:=20pg-cluster=20threshold=2080%=E2=86=921?= =?UTF-8?q?0%=20in=20CNPG=20inheritedMetadata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same misconfig as the bulk fecfa211 sweep, but the pg-cluster YAML is buried inside a null_resource local-exec heredoc so the regex didn't catch it. CNPG operator inherits these annotations onto each member PVC (pg-cluster-1, pg-cluster-2), and reapplies them on every reconcile — patching the live PVCs alone bounces back within seconds. Live state already patched via kubectl patch cluster, this just keeps TF in sync. Co-Authored-By: Claude Opus 4.7 --- stacks/dbaas/modules/dbaas/main.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stacks/dbaas/modules/dbaas/main.tf b/stacks/dbaas/modules/dbaas/main.tf index a0d34cf8..54e29bee 100644 --- a/stacks/dbaas/modules/dbaas/main.tf +++ b/stacks/dbaas/modules/dbaas/main.tf @@ -1075,7 +1075,9 @@ resource "null_resource" "pg_cluster" { enableSuperuserAccess: true inheritedMetadata: annotations: - resize.topolvm.io/threshold: "80%" + # threshold = free-space % below which autoresizer expands. + # 10% means "expand when 90% used" (the conventional knob). + resize.topolvm.io/threshold: "10%" resize.topolvm.io/increase: "20%" resize.topolvm.io/storage_limit: "100Gi" storage: