mirror of
https://github.com/philippemerle/KubeDiagrams.git
synced 2026-08-16 14:16:14 +00:00
Duplicated data when creating new PersistentVolumeClaim resources to avoid to modify these data
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user