fix(app): namespace selector fixes [EE-6561] (#10977)

pull/10981/head
Ali 2024-01-19 12:20:44 +13:00 committed by GitHub
parent a4739f1701
commit 5f040bf788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 15 deletions

View File

@ -66,7 +66,7 @@
<namespace-selector
values="ctrl.formValues.ResourcePool.Namespace.Name"
on-change="(ctrl.onChangeNamespaceName)"
validation-data="{hasQuota: ctrl.state.resourcePoolHasQuota, isResourceQuotaCapacityExceeded: ctrl.resourceQuotaCapacityExceeded(), namespaceOptionCount: ctrl.resourcePools.length, isEnvironmentAdmin: ctrl.state.isEnvironmentAdmin}"
validation-data="{hasQuota: ctrl.state.resourcePoolHasQuota, isResourceQuotaCapacityExceeded: ctrl.resourceQuotaCapacityExceeded(), namespaceOptionCount: ctrl.resourcePools.length, isEnvironmentAdmin: ctrl.isAdmin}"
is-edit="ctrl.state.isEdit"
></namespace-selector>
<!-- kubernetes services options -->
@ -325,14 +325,14 @@
<!-- #endregion -->
</div>
<placement-form-section
ng-show="ctrl.formValues.DeploymentType === ctrl.ApplicationDeploymentTypes.Replicated"
values="{placements: ctrl.formValues.Placements, placementType: ctrl.formValues.PlacementType}"
on-change="(ctrl.onChangePlacements)"
></placement-form-section>
<!-- kubernetes services options -->
<div class="mb-8" ng-if="ctrl.formValues.ResourcePool">
<placement-form-section
ng-show="ctrl.formValues.DeploymentType === ctrl.ApplicationDeploymentTypes.Replicated"
values="{placements: ctrl.formValues.Placements, placementType: ctrl.formValues.PlacementType}"
on-change="(ctrl.onChangePlacements)"
></placement-form-section>
<!-- kubernetes services options -->
<kube-services-form
on-change="(ctrl.onServicesChange)"
values="ctrl.formValues.Services"

View File

@ -42,13 +42,6 @@ export function ResourceReservationFormSection({
application. Maximums are inherited from the namespace quota.
</TextTip>
)}
{namespaceHasQuota && resourceQuotaCapacityExceeded && (
<TextTip color="red">
This namespace has exhausted its resource capacity and you will not be
able to deploy the application. Contact your administrator to expand
the capacity of the namespace.
</TextTip>
)}
<FormControl
className="flex flex-row"
label="Memory limit (MB)"