From e1f725d01af9662efca95f54f3e0bc1b3319b826 Mon Sep 17 00:00:00 2001 From: Richard Wei <54336863+WaysonWei@users.noreply.github.com> Date: Wed, 22 Sep 2021 16:01:28 +1200 Subject: [PATCH] fix(k8s): fix error handling for namespace restricted user EE-1703 (#5692) * fix error handler for user has no namespace access --- .../helm/helm-templates/helm-templates.html | 10 +- .../create/createApplication.html | 2732 +++++++++-------- .../create/createConfiguration.html | 120 +- app/kubernetes/views/deploy/deploy.html | 8 +- .../views/deploy/deployController.js | 8 +- 5 files changed, 1446 insertions(+), 1432 deletions(-) diff --git a/app/kubernetes/components/helm/helm-templates/helm-templates.html b/app/kubernetes/components/helm/helm-templates/helm-templates.html index 1c1cda61f..1cdae0d32 100644 --- a/app/kubernetes/components/helm/helm-templates/helm-templates.html +++ b/app/kubernetes/components/helm/helm-templates/helm-templates.html @@ -39,7 +39,7 @@ Configuration -
Environment variable name is required.
-This field must consist of alphabetic characters, digits, '_', '-', or '.', and must - not start with a digit (e.g. 'my.env-name', or 'MY_ENV.NAME', or 'MyEnvName1'.
-This environment variable is already defined.
-{{ config.SelectedConfiguration.Name }}
configuration as environment variables:
-
- {{ key }}
{{ $last ? '' : ', ' }}
-
- Path is required.
-This path is already used.
-Path is required.
-This path is already defined.
-Size is required.
-This value must be greater than zero.
-Volume is required.
-This volume is already used.
-- Maximum memory usage (MB) -
-Value must be between {{ ctrl.state.sliders.memory.min }} and - {{ ctrl.state.sliders.memory.max }} -
-- Maximum CPU usage -
-Instance count is required.
-Instance count must be greater than 0.
-{{ ctrl.getNonScalableStorage() }}
. You will not be able to scale that application.
- - This feature is currently disabled and must be enabled by an administrator user. -
-- Server metrics features must be enabled in the - environment configuration view. -
-Minimum instances | -Maximum instances | -
- Target CPU usage (%)
- |
-
-
-
-
-
-
-
-
- Minimum instances is required. -Minimum instances must be greater than 0. -Minimum instances must be smaller than maximum instances. - |
-
-
-
-
-
-
-
-
- Maximum instances is required. -Maximum instances must be greater than minimum instances. - |
-
-
-
-
-
-
-
-
- Target CPU usage is required. -Target CPU usage must be greater than 0. -Target CPU usage must be smaller than 100. - |
-
- This label is already defined. -
+Environment variable name is required.
+This field must consist of alphabetic characters, digits, '_', '-', or '.', and must + not start with a digit (e.g. 'my.env-name', or 'MY_ENV.NAME', or 'MyEnvName1'.
+This environment variable is already defined.
+{{ config.SelectedConfiguration.Name }}
configuration as environment variables:
+
+ {{ key }}
{{ $last ? '' : ', ' }}
+
+ Path is required.
+This path is already used.
+Path is required.
+This path is already defined.
+Size is required.
+This value must be greater than zero.
+Volume is required.
+This volume is already used.
+Internal communications inside the cluster only
-Internal communications inside the cluster only
-Publish this application via a port on all nodes of the cluster
-Publish this application via a port on all nodes of the cluster
-Publish this application via a HTTP route
-Publish this application via a HTTP route
-Publish this application via a load balancer
-Publish this application via a load balancer
-+ Maximum memory usage (MB) +
+Value must be between {{ ctrl.state.sliders.memory.min }} and + {{ ctrl.state.sliders.memory.max }} +
++ Maximum CPU usage +
+Run one or multiple instances of this container
+Application will be deployed as a DaemonSet with an instance on each node of the cluster
+Application will be deployed as a DaemonSet with an instance on each node of the cluster
+Instance count is required.
+Instance count must be greater than 0.
+30000-32767
.
- {{ ctrl.getNonScalableStorage() }}
. You will not be able to scale that application.
+ + This feature is currently disabled and must be enabled by an administrator user. +
++ Server metrics features must be enabled in the + environment configuration view. +
+Minimum instances | +Maximum instances | +
+ Target CPU usage (%)
+ |
+
+
+
+
+
+
+
+
+ Minimum instances is required. +Minimum instances must be greater than 0. +Minimum instances must be smaller than maximum instances. + |
+
+
+
+
+
+
+
+
+ Maximum instances is required. +Maximum instances must be greater than minimum instances. + |
+
+
+
+
+
+
+
+
+ Target CPU usage is required. +Target CPU usage must be greater than 0. +Target CPU usage must be smaller than 100. + |
+
+ This label is already defined. +
+Schedule this application ONLY on nodes that match ALL Rules
+Schedule this application on nodes that match the rules if possible
+Internal communications inside the cluster only
+Internal communications inside the cluster only
+Publish this application via a port on all nodes of the cluster
+Publish this application via a port on all nodes of the cluster
+Publish this application via a HTTP route
+Publish this application via a HTTP route
+Publish this application via a load balancer
+Publish this application via a load balancer
+Container port number is required.
-Container port number must be inside the range 1-65535.
-Container port number must be inside the range 1-65535.
-- This port is already used. -
-30000-32767
.
+ Node port number must be inside the range 30000-32767.
-Node port number must be inside the range 30000-32767.
-- This port is already used. -
+ container port +Ingress selection is required.
-Route is required.
-This field must consist of alphanumeric characters or the special characters: '-', '_' or - '/'. It must start and end with an alphanumeric character (e.g. 'my-route', or 'route-123').
node port + +- This route is already used. -
+ +Load balancer port number is required.
-Load balancer port number must be inside the range 1-65535.
-Load balancer port number must be inside the range 1-65535.
+ +Container port number is required.
+Container port number must be inside the range 1-65535.
+Container port number must be inside the range 1-65535.
++ This port is already used. +
- - This port is already used. -
Node port number must be inside the range 30000-32767.
+Node port number must be inside the range 30000-32767.
++ This port is already used. +
+Ingress selection is required.
+Route is required.
+This field must consist of alphanumeric characters or the special characters: '-', '_' or + '/'. It must start and end with an alphanumeric character (e.g. 'my-route', or 'route-123').
++ This route is already used. +
+Load balancer port number is required.
+Load balancer port number must be inside the range 1-65535.
+Load balancer port number must be inside the range 1-65535.
++ + This port is already used. +
+This configuration holds non-sensitive information
-This configuration holds sensitive information
-Opaque
. You can find more information about this in the
- official documentation.
+
+ This configuration holds non-sensitive information
+This configuration holds sensitive information
+Opaque
. You can find more information about this in the
+ official documentation.
+