workload_clusters.kustomization_default.prune value not applied to team Kustomizations
Summary
The workload_clusters.kustomization_default.prune configuration value in the management cluster values.yaml is not being propagated to the FluxCD Kustomization resources created for workload teams. This results in the Kustomization resources defaulting to prune: false instead of using the configured value.
related references
Environment
- Sylva Version: 1.6.x
- Component: workload-team-defs Helm
Details
Expected Behavior
When setting workload_clusters.kustomization_default.prune: true in the management cluster values.yaml, the FluxCD Kustomization resources created for workload teams should have spec.prune: true.
Actual Behavior
The Kustomization resources created for workload teams do not have the prune field set in their spec, which means they default to prune: false. The configuration value seems to be ignored.
Steps to Reproduce
- Configure the management cluster with
workload_clusters.kustomization_default.prune: true:
workload_clusters:
kustomization_default:
prune: true
teams:
teama:
gitrepository_spec:
url: https://github.com/myRepo/Sylva.git
ref:
branch: main
git_secret_path: gitsecret
gitrepository_path: teama
vault_write_group: dev
-
Deploy the management cluster
-
Check the Kustomization resource for a team:
kubectl get kustomizations.kustomize.toolkit.fluxcd.io -n swct-teama -oyaml | grep -A 10 "^ spec:"
- Observe that the spec does not include
prune: true
Observed Output
kind: Kustomization
metadata:
annotations:
meta.helm.sh/release-name: workload-team-defs
meta.helm.sh/release-namespace: sylva-system
reconcile.fluxcd.io/requestedAt: "2026-02-17T10:12:58.226120889Z"
creationTimestamp: "2026-02-13T17:01:39Z"
finalizers:
- finalizers.fluxcd.io
generation: 1
labels:
app.kubernetes.io/instance: workload-team-defs
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: workload-team-defs
app.kubernetes.io/version: 0.0.0
helm.sh/chart: workload-team-defs-0.5.2
helm.toolkit.fluxcd.io/name: workload-team-defs
helm.toolkit.fluxcd.io/namespace: sylva-system
name: teama
namespace: swct-teama
resourceVersion: "8832009"
uid: 1e5beead-3f43-43d3-9bcf-1e8729b9de69
spec:
force: false
# prune field is missing - defaults to false