1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

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

This commit is contained in:
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

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: