mirror of https://github.com/portainer/portainer
13 lines
341 B
JavaScript
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;
|