From b7f47635408123ca3b7bd5c62f0c7cad1cbd69a2 Mon Sep 17 00:00:00 2001 From: mhoshi-vm Date: Wed, 25 Dec 2024 07:52:39 +0900 Subject: [PATCH] Fix statefulset pvc --- .../10.0.0/hacks/tmc-createnamespace-false.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/tpk8s-opinionated.tanzu.japan.com/10.0.0/hacks/tmc-createnamespace-false.yaml b/manifests/tpk8s-opinionated.tanzu.japan.com/10.0.0/hacks/tmc-createnamespace-false.yaml index b799529..25131b7 100644 --- a/manifests/tpk8s-opinionated.tanzu.japan.com/10.0.0/hacks/tmc-createnamespace-false.yaml +++ b/manifests/tpk8s-opinionated.tanzu.japan.com/10.0.0/hacks/tmc-createnamespace-false.yaml @@ -11,12 +11,13 @@ stringData: #@ load("@ytt:base64", "base64") #@ load("@ytt:yaml", "yaml") - #@ def xsmall(): + #@ def create_namespace_false(): + #@overlay/match missing_ok=True createNamespace: false #@ end #@overlay/match by=overlay.subset({"kind":"Secret", "metadata": {"name": "tmc-values"}}) --- data: - #@overlay/replace via=lambda orig, _: base64.encode(yaml.encode(overlay.apply(yaml.decode(base64.decode(orig)),xsmall()))) + #@overlay/replace via=lambda orig, _: base64.encode(yaml.encode(overlay.apply(yaml.decode(base64.decode(orig)),create_namespace_false()))) values.yaml: \ No newline at end of file