Merge Longhorn StorageClass numeric-coercion fix into main

This commit is contained in:
jakman85 committed 2026-08-17 00:53:04 -05:00
commit c04aea85aa
1 file changed
+9 -4
+9 -4
View File
@@ -16,10 +16,15 @@ allowVolumeExpansion: true
reclaimPolicy: Delete # dev: reclaim space when the PVC is deleted
volumeBindingMode: Immediate
parameters:
# 3 replicas across 3 nodes — substituted from cluster-vars.longhorn_default_replica_count.
# HARD node anti-affinity in helmrelease.yaml (replicaSoftAntiAffinity=false) guarantees these
# replicas land on distinct nodes, so any single node loss keeps the volume available.
numberOfReplicas: "${LONGHORN_DEFAULT_REPLICA_COUNT}"
# 3 replicas across 3 nodes (topology-LOCKED). HARD node anti-affinity in helmrelease.yaml
# (replicaSoftAntiAffinity=false) guarantees these land on distinct nodes, so any single node
# loss keeps the volume available.
# HARDCODED, not ${LONGHORN_DEFAULT_REPLICA_COUNT}: StorageClass.parameters is map[string]string,
# but kustomize strips the quotes around a bare "${VAR}" placeholder, so Flux postBuild substitution
# yields an unquoted numeric (3) that server-side apply rejects (int, not string). A quoted numeric
# literal like "3"/"30" IS preserved by kustomize. The replica knob still drives the GLOBAL default
# via defaultSettings.defaultReplicaCount in helmrelease.yaml (a Helm int value, unaffected).
numberOfReplicas: "3"
staleReplicaTimeout: "30" # minutes before a down replica is considered stale and rebuilt
dataLocality: "disabled" # keep replicas spread for durability, not co-located with the pod
fsType: "ext4"