You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/models/storage-class/models.js

36 lines
815 B

/**
* 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)));
}
}