1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

fix(k8s): fix error handling for namespace restricted user EE-1703 (#5692)

* fix error handler for user has no namespace access
This commit is contained in:
Richard Wei 2021-09-22 16:01:28 +12:00 committed by GitHub
parent b876f2d17d
commit e1f725d01a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1446 additions and 1432 deletions

View file

@ -39,7 +39,7 @@
Configuration
</div>
<!-- namespace-input -->
<div class="form-group">
<div class="form-group" ng-if="$ctrl.state.resourcePool">
<label for="resource-pool-selector" class="col-sm-2 control-label text-left">Namespace</label>
<div class="col-sm-10">
<select
@ -52,13 +52,7 @@
></select>
</div>
</div>
<div class="form-group" ng-if="!$ctrl.state.resourcePool">
<div class="col-sm-12 small text-danger">
<i class="fa fa-exclamation-circle red-icon" aria-hidden="true" style="margin-right: 2px;"></i>
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.
</div>
</div>
<div class="form-group" ng-if="!$ctrl.state.resourcePool">
<div class="col-sm-12 small text-muted">
<i class="fa fa-exclamation-circle orange-icon" aria-hidden="true" style="margin-right: 2px;"></i>