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()