mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(app): improve resource quota error handling [EE-5933] (#10951)
This commit is contained in:
parent
488fcc7cc5
commit
6d71a28584
9 changed files with 122 additions and 50 deletions
|
@ -7,7 +7,6 @@ import { NamespaceAccessUsersSelector } from '@/react/kubernetes/namespaces/Acce
|
|||
import { RegistriesSelector } from '@/react/kubernetes/namespaces/components/RegistriesFormSection/RegistriesSelector';
|
||||
import { KubeServicesForm } from '@/react/kubernetes/applications/CreateView/application-services/KubeServicesForm';
|
||||
import { kubeServicesValidation } from '@/react/kubernetes/applications/CreateView/application-services/kubeServicesValidation';
|
||||
import { AppDeploymentTypeFormSection } from '@/react/kubernetes/applications/CreateView/AppDeploymentTypeFormSection';
|
||||
import { withReactQuery } from '@/react-tools/withReactQuery';
|
||||
import { withUIRouter } from '@/react-tools/withUIRouter';
|
||||
import {
|
||||
|
@ -56,6 +55,8 @@ import {
|
|||
NameFormSection,
|
||||
appNameValidation,
|
||||
} from '@/react/kubernetes/applications/components/NameFormSection';
|
||||
import { deploymentTypeValidation } from '@/react/kubernetes/applications/components/AppDeploymentTypeFormSection/deploymentTypeValidation';
|
||||
import { AppDeploymentTypeFormSection } from '@/react/kubernetes/applications/components/AppDeploymentTypeFormSection/AppDeploymentTypeFormSection';
|
||||
|
||||
import { EnvironmentVariablesFieldset } from '@@/form-components/EnvironmentVariablesFieldset';
|
||||
|
||||
|
@ -122,14 +123,6 @@ export const ngModule = angular
|
|||
'persistedFoldersUseExistingVolumes',
|
||||
])
|
||||
)
|
||||
.component(
|
||||
'appDeploymentTypeFormSection',
|
||||
r2a(AppDeploymentTypeFormSection, [
|
||||
'value',
|
||||
'onChange',
|
||||
'supportGlobalDeployment',
|
||||
])
|
||||
)
|
||||
.component(
|
||||
'kubeYamlInspector',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(YAMLInspector))), [
|
||||
|
@ -333,3 +326,12 @@ withFormValidation(
|
|||
appNameValidation,
|
||||
true
|
||||
);
|
||||
|
||||
withFormValidation(
|
||||
ngModule,
|
||||
AppDeploymentTypeFormSection,
|
||||
'appDeploymentTypeFormSection',
|
||||
['supportGlobalDeployment'],
|
||||
deploymentTypeValidation,
|
||||
true
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue