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:
parent
4c0049edbe
commit
b81babe682
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue