portainer/app/kubernetes/converters/storageClass.js

16 lines
405 B
JavaScript

import { KubernetesStorageClass } from 'Kubernetes/models/storage-class/models';
class KubernetesStorageClassConverter {
/**
* API StorageClass to front StorageClass
*/
static apiToStorageClass(data) {
const res = new KubernetesStorageClass();
res.Name = data.metadata.name;
res.Provisioner = data.provisioner;
return res;
}
}
export default KubernetesStorageClassConverter;