1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-30 02:39:41 +02:00

fix(container): runtime and resources issues EE-6306 (#10611)

This commit is contained in:
cmeng 2023-11-27 11:56:44 +13:00 committed by GitHub
parent 1bcbfb8213
commit dc574af734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 15 deletions

View file

@ -35,6 +35,7 @@ export function ResourceFieldset({
<FormSection title="Resources">
<FormControl label="Memory reservation (MB)" errors={errors?.reservation}>
<SliderWithInput
visibleTooltip
value={values.reservation}
onChange={(value) => onChange({ ...values, reservation: value })}
max={maxMemory}
@ -45,6 +46,7 @@ export function ResourceFieldset({
<FormControl label="Memory limit (MB)" errors={errors?.limit}>
<SliderWithInput
visibleTooltip
value={values.limit}
onChange={(value) => onChange({ ...values, limit: value })}
max={maxMemory}
@ -55,6 +57,7 @@ export function ResourceFieldset({
<FormControl label="Maximum CPU usage" errors={errors?.cpu}>
<Slider
visibleTooltip
value={values.cpu}
onChange={(value) =>
onChange({