mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
* feat(applications): update UI to use existing volumes * feat(application): Add the ability to use existing volumes when creating an application * feat(application): Existing persisted folders should default to associated volumes * feat(application): add form validation to existing volume * feat(application): remove the ability to use an existing volume with statefulset application * feat(k8s/applications): minor UI update * feat(k8s/application): minor UI update * feat(volume): allow to increase volume size and few other things * feat(volumes): add the ability to allow volume expansion * fix(storage): fix the storage patch request * fix(k8s/applications): remove conflict leftover * feat(k8s/configure): minor UI update * feat(k8s/volume): minor UI update * fix(storage): change few things Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
35 lines
815 B
JavaScript
35 lines
815 B
JavaScript
/**
|
|
* KubernetesStorageClassAccessPolicies Model
|
|
*/
|
|
const _KubernetesStorageClassAccessPolicies = Object.freeze([
|
|
{
|
|
Name: 'RWO',
|
|
Description: 'Allow read-write from a single pod only (RWO)',
|
|
selected: true,
|
|
},
|
|
{
|
|
Name: 'RWX',
|
|
Description: 'Allow read-write access from one or more pods concurrently (RWX)',
|
|
selected: false,
|
|
},
|
|
]);
|
|
|
|
export function KubernetesStorageClassAccessPolicies() {
|
|
return JSON.parse(JSON.stringify(_KubernetesStorageClassAccessPolicies));
|
|
}
|
|
|
|
/**
|
|
* KubernetesStorageClass Model
|
|
*/
|
|
const _KubernetesStorageClass = Object.freeze({
|
|
Name: '',
|
|
AccessModes: [],
|
|
Provisioner: '',
|
|
AllowVolumeExpansion: false,
|
|
});
|
|
|
|
export class KubernetesStorageClass {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesStorageClass)));
|
|
}
|
|
}
|