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:
parent
e07ee05ee7
commit
947ba4940b
7 changed files with 168 additions and 96 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue