Duplicated data when creating new PersistentVolumeClaim resources to avoid to modify these data

This commit is contained in:
Philippe Merle
2026-06-26 09:50:03 +02:00
parent db2adae0f5
commit 702705d29f
+2 -1
View File
@@ -611,7 +611,8 @@ nodes:
pvc = {
"kind": "PersistentVolumeClaim",
"apiVersion": "v1",
**vct
"metadata": dict(vct.get("metadata", {})),
"spec": vct.get("spec", {}),
}
pvc["metadata"]["name"] = f'{pvc["metadata"]["name"]}-{resource["metadata"]["name"]}'
if namespace is not None: