portainer/app/kubernetes/converters/resourcePool.js

13 lines
341 B
JavaScript

import { KubernetesResourcePool } from 'Kubernetes/models/resource-pool/models';
class KubernetesResourcePoolConverter {
static apiToResourcePool(namespace) {
const res = new KubernetesResourcePool();
res.Namespace = namespace;
res.Yaml = namespace.Yaml;
return res;
}
}
export default KubernetesResourcePoolConverter;