fix(k8s): allow relative paths for kind deployment PVs
Kind deployments can use relative paths because the extraMounts config resolves them to absolute paths on the host. The PV creation should not skip relative paths for kind deployments since the PV will use the /mnt/<volume> path inside the kind node. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
parent
1eed7987e2
commit
b04ce627f1
|
|
@ -352,6 +352,8 @@ class ClusterInfo:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not os.path.isabs(volume_path):
|
if not os.path.isabs(volume_path):
|
||||||
|
# Kind deployments allow relative paths (resolved via extraMounts)
|
||||||
|
if not self.spec.is_kind_deployment():
|
||||||
print(
|
print(
|
||||||
f"WARNING: {volume_name}:{volume_path} is not absolute, "
|
f"WARNING: {volume_name}:{volume_path} is not absolute, "
|
||||||
"cannot bind volume."
|
"cannot bind volume."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue