From 9f732c2226f9e660c200d041454fd5dfdbf00ef7 Mon Sep 17 00:00:00 2001 From: "A. F. Dudley" Date: Sun, 25 Jan 2026 17:44:16 -0500 Subject: [PATCH] fix(deploy): create ConfigMaps for kind deployments Volumes with "config" in the name should be ConfigMaps for all k8s deployment types, including k8s-kind. Previously only full k8s deployments would create ConfigMaps for these volumes. Co-Authored-By: Claude Opus 4.5 --- stack_orchestrator/deploy/deployment_create.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/stack_orchestrator/deploy/deployment_create.py b/stack_orchestrator/deploy/deployment_create.py index 6ee4cd36..d3e0991c 100644 --- a/stack_orchestrator/deploy/deployment_create.py +++ b/stack_orchestrator/deploy/deployment_create.py @@ -459,14 +459,14 @@ def init_operation( # Docker Compose and kind: use relative paths volume_descriptors[named_volume] = f"./data/{named_volume}" for named_volume in named_volumes["ro"]: - if deployer_type == "k8s": - # Full k8s: configmaps or provisioner-managed - if "config" in named_volume: - configmap_descriptors[named_volume] = f"./configmaps/{named_volume}" - else: - volume_descriptors[named_volume] = None + # ConfigMaps for volumes with "config" in name (all k8s types) + if "config" in named_volume and "k8s" in deployer_type: + configmap_descriptors[named_volume] = f"./configmaps/{named_volume}" + elif deployer_type == "k8s": + # Full k8s: provisioner-managed + volume_descriptors[named_volume] = None else: - # Docker Compose and kind: use relative paths + # Docker Compose: use relative paths volume_descriptors[named_volume] = f"./data/{named_volume}" if volume_descriptors: # Merge with existing volumes from stack init()