|
|
@ -15,6 +15,8 @@ type Props = {
|
|
|
|
errors: FormikErrors<ResourceQuotaFormValues>;
|
|
|
|
errors: FormikErrors<ResourceQuotaFormValues>;
|
|
|
|
namespaceHasQuota: boolean;
|
|
|
|
namespaceHasQuota: boolean;
|
|
|
|
resourceQuotaCapacityExceeded: boolean;
|
|
|
|
resourceQuotaCapacityExceeded: boolean;
|
|
|
|
|
|
|
|
minMemoryLimit: number;
|
|
|
|
|
|
|
|
minCpuLimit: number;
|
|
|
|
maxMemoryLimit: number;
|
|
|
|
maxMemoryLimit: number;
|
|
|
|
maxCpuLimit: number;
|
|
|
|
maxCpuLimit: number;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -25,6 +27,8 @@ export function ResourceReservationFormSection({
|
|
|
|
errors,
|
|
|
|
errors,
|
|
|
|
namespaceHasQuota,
|
|
|
|
namespaceHasQuota,
|
|
|
|
resourceQuotaCapacityExceeded,
|
|
|
|
resourceQuotaCapacityExceeded,
|
|
|
|
|
|
|
|
minMemoryLimit,
|
|
|
|
|
|
|
|
minCpuLimit,
|
|
|
|
maxMemoryLimit,
|
|
|
|
maxMemoryLimit,
|
|
|
|
maxCpuLimit,
|
|
|
|
maxCpuLimit,
|
|
|
|
}: Props) {
|
|
|
|
}: Props) {
|
|
|
@ -52,6 +56,7 @@ export function ResourceReservationFormSection({
|
|
|
|
<SliderWithInput
|
|
|
|
<SliderWithInput
|
|
|
|
value={Number(values.memoryLimit) ?? 0}
|
|
|
|
value={Number(values.memoryLimit) ?? 0}
|
|
|
|
onChange={(value) => onChange({ ...values, memoryLimit: value })}
|
|
|
|
onChange={(value) => onChange({ ...values, memoryLimit: value })}
|
|
|
|
|
|
|
|
min={minMemoryLimit}
|
|
|
|
max={maxMemoryLimit}
|
|
|
|
max={maxMemoryLimit}
|
|
|
|
step={128}
|
|
|
|
step={128}
|
|
|
|
dataCy="k8sAppCreate-memoryLimit"
|
|
|
|
dataCy="k8sAppCreate-memoryLimit"
|
|
|
@ -79,7 +84,7 @@ export function ResourceReservationFormSection({
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
value={values.cpuLimit}
|
|
|
|
value={values.cpuLimit}
|
|
|
|
min={0}
|
|
|
|
min={minCpuLimit}
|
|
|
|
max={maxCpuLimit}
|
|
|
|
max={maxCpuLimit}
|
|
|
|
step={0.1}
|
|
|
|
step={0.1}
|
|
|
|
dataCy="k8sAppCreate-cpuLimitSlider"
|
|
|
|
dataCy="k8sAppCreate-cpuLimitSlider"
|
|
|
|