mirror of https://github.com/portainer/portainer
23 lines
597 B
JavaScript
23 lines
597 B
JavaScript
export function KubernetesResourcePoolFormValues(defaults) {
|
|
return {
|
|
MemoryLimit: defaults.MemoryLimit,
|
|
CpuLimit: defaults.CpuLimit,
|
|
HasQuota: true,
|
|
IngressClasses: [], // KubernetesResourcePoolIngressClassFormValue
|
|
};
|
|
}
|
|
|
|
/**
|
|
* @param {string} ingressClassName
|
|
*/
|
|
export function KubernetesResourcePoolIngressClassFormValue(ingressClassName) {
|
|
return {
|
|
Name: ingressClassName,
|
|
IngressClassName: ingressClassName,
|
|
Host: undefined,
|
|
Selected: false,
|
|
WasSelected: false,
|
|
Namespace: undefined, // will be filled inside ResourcePoolService.create
|
|
};
|
|
}
|