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
|
# Docker Compose and kind: use relative paths
|
||||||
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
||||||
for named_volume in named_volumes["ro"]:
|
for named_volume in named_volumes["ro"]:
|
||||||
if deployer_type == "k8s":
|
# ConfigMaps for volumes with "config" in name (all k8s types)
|
||||||
# Full k8s: configmaps or provisioner-managed
|
if "config" in named_volume and "k8s" in deployer_type:
|
||||||
if "config" in named_volume:
|
configmap_descriptors[named_volume] = f"./configmaps/{named_volume}"
|
||||||
configmap_descriptors[named_volume] = f"./configmaps/{named_volume}"
|
elif deployer_type == "k8s":
|
||||||
else:
|
# Full k8s: provisioner-managed
|
||||||
volume_descriptors[named_volume] = None
|
volume_descriptors[named_volume] = None
|
||||||
else:
|
else:
|
||||||
# Docker Compose and kind: use relative paths
|
# Docker Compose: use relative paths
|
||||||
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
volume_descriptors[named_volume] = f"./data/{named_volume}"
|
||||||
if volume_descriptors:
|
if volume_descriptors:
|
||||||
# Merge with existing volumes from stack init()
|
# Merge with existing volumes from stack init()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue