fix(app): no summary for existing pvc [EE-6569] (#10995)

pull/10731/merge
Ali 2024-01-23 11:19:52 +13:00 committed by GitHub
parent 4c0049edbe
commit b81babe682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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: