From b81babe682b8d1fd09ec96ac1df0f4beacbee2b2 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:19:52 +1300 Subject: [PATCH] fix(app): no summary for existing pvc [EE-6569] (#10995) --- .../components/ApplicationSummarySection/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/react/kubernetes/applications/components/ApplicationSummarySection/utils.ts b/app/react/kubernetes/applications/components/ApplicationSummarySection/utils.ts index 3bebc20e5..c9c99fe68 100644 --- a/app/react/kubernetes/applications/components/ApplicationSummarySection/utils.ts +++ b/app/react/kubernetes/applications/components/ApplicationSummarySection/utils.ts @@ -93,7 +93,10 @@ function getCreatedApplicationResourcesNew( // statefulset pvcs are defined in spec.volumeClaimTemplates. // https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-storage formValues.DataAccessPolicy === 'Shared' - ? formValues.PersistedFolders?.map((volume) => ({ + ? formValues.PersistedFolders?.filter( + // only create pvc summaries for new pvcss + (volume) => !volume.existingVolume?.PersistentVolumeClaim.Name + ).map((volume) => ({ action: 'Create', kind: 'PersistentVolumeClaim', name: