@kumori/aurora-backend-handler 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -741,13 +741,13 @@ export const extractResourcesFromFilesystem = (
|
|
|
741
741
|
Object.entries(filesystem).forEach(([key, value]: [string, any]) => {
|
|
742
742
|
if (value.volume) {
|
|
743
743
|
const existingResource = currentResources.find(
|
|
744
|
-
(res) => res.
|
|
744
|
+
(res) => res.name === value.volume,
|
|
745
745
|
);
|
|
746
746
|
resources.push({
|
|
747
747
|
type: "volume",
|
|
748
748
|
name: value.path || existingResource?.name,
|
|
749
|
-
value: value.volume,
|
|
750
|
-
kind:
|
|
749
|
+
value: existingResource?.value || value.volume,
|
|
750
|
+
kind: (existingResource?.kind as "persistent" | "volatile" | "nonReplicated") || "storage",
|
|
751
751
|
status: existingResource?.status || "available",
|
|
752
752
|
tenant: "",
|
|
753
753
|
});
|