From 5487463e7522b9684936f96e4b8425928ccc0929 Mon Sep 17 00:00:00 2001 From: mario Date: Wed, 13 Aug 2025 18:02:21 +0200 Subject: [PATCH] * enable setting of storageClass reclaimPolicy for local-path --- cluster-template/inventory.yaml | 2 ++ components/local-storage/kustomization.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/cluster-template/inventory.yaml b/cluster-template/inventory.yaml index 7e04e8c..fac534f 100644 --- a/cluster-template/inventory.yaml +++ b/cluster-template/inventory.yaml @@ -51,6 +51,8 @@ all: - trust-manager # only development clusters can be reseted development_cluster: true + # set the reclaimPolicy for the local-path stroage class + sc_local_path_reclaim_policy: "Retain" # the internal ip address range for pods k8s_cidr: 10.85.0.0/16 # the internal ip address range for services diff --git a/components/local-storage/kustomization.yaml b/components/local-storage/kustomization.yaml index 93b7e35..a2478f9 100644 --- a/components/local-storage/kustomization.yaml +++ b/components/local-storage/kustomization.yaml @@ -13,6 +13,9 @@ patches: - op: add path: /metadata/annotations/storageclass.kubernetes.io~1is-default-class value: "true" + - op: replace + path: /reclaimPolicy + value: "{{ sc_local_path_reclaim_policy | default('Delete') }}" {% if repo_mirror is defined %} images: