diff --git a/app/kubernetes/react/components/index.ts b/app/kubernetes/react/components/index.ts index f0ad11e94..eab580a93 100644 --- a/app/kubernetes/react/components/index.ts +++ b/app/kubernetes/react/components/index.ts @@ -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 +); diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index f559bb292..a4af13daa 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -432,102 +432,15 @@ -