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

refactor(app): migrate resource reservations [EE-6236] (#10695)

* refactor(app): migrate resource reservations [EE-6236]
This commit is contained in:
Ali 2024-01-03 10:03:33 +13:00 committed by GitHub
parent e07ee05ee7
commit 947ba4940b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 168 additions and 96 deletions

View file

@ -30,6 +30,10 @@ import { configurationsValidationSchema } from '@/react/kubernetes/applications/
import { ConfigMapsFormSection } from '@/react/kubernetes/applications/components/ConfigurationsFormSection/ConfigMapsFormSection';
import { PersistedFoldersFormSection } from '@/react/kubernetes/applications/components/PersistedFoldersFormSection';
import { persistedFoldersValidation } from '@/react/kubernetes/applications/components/PersistedFoldersFormSection/persistedFoldersValidation';
import {
ResourceReservationFormSection,
resourceReservationValidation,
} from '@/react/kubernetes/applications/components/ResourceReservationFormSection';
import { EnvironmentVariablesFieldset } from '@@/form-components/EnvironmentVariablesFieldset';
@ -221,3 +225,16 @@ withFormValidation(
],
persistedFoldersValidation
);
withFormValidation(
ngModule,
withUIRouter(withCurrentUser(withReactQuery(ResourceReservationFormSection))),
'resourceReservationFormSection',
[
'namespaceHasQuota',
'resourceQuotaCapacityExceeded',
'maxMemoryLimit',
'maxCpuLimit',
],
resourceReservationValidation
);