export function KubernetesResourcePoolFormValues(defaults) { return { MemoryLimit: defaults.MemoryLimit, CpuLimit: defaults.CpuLimit, HasQuota: true, IngressClasses: [], // KubernetesResourcePoolIngressClassFormValue }; } /** * @param {KubernetesIngressClass} ingressClass */ export function KubernetesResourcePoolIngressClassFormValue(ingressClass) { return { Namespace: undefined, // will be filled inside ResourcePoolService.create IngressClass: ingressClass, RewriteTarget: false, Annotations: [], // KubernetesResourcePoolIngressClassAnnotationFormValue Host: undefined, Selected: false, WasSelected: false, AdvancedConfig: false, }; } export function KubernetesResourcePoolIngressClassAnnotationFormValue() { return { Key: '', Value: '', }; }