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 <noreply@anthropic.com>
parent
b04ce627f1
commit
9f732c2226
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue