From 2552eb5e252715decb0a7b627b4bdc6b1952295b Mon Sep 17 00:00:00 2001 From: Matt Hook Date: Mon, 1 Aug 2022 16:45:28 +1200 Subject: [PATCH] feat(kube): create namespace from form view [EE-3479] (#7260) Restyle create namespace from form view --- app/assets/css/vendor-override.css | 8 + app/assets/ico/route.svg | 4 +- .../storage-class-switch.html | 3 +- .../create/createResourcePool.html | 274 +++++++++--------- .../create/createResourcePoolController.js | 7 + 5 files changed, 163 insertions(+), 133 deletions(-) diff --git a/app/assets/css/vendor-override.css b/app/assets/css/vendor-override.css index 0519029d7..747653c1b 100644 --- a/app/assets/css/vendor-override.css +++ b/app/assets/css/vendor-override.css @@ -288,6 +288,14 @@ json-tree .branch-preview { .rzslider .rz-bubble.rz-limit { color: var(--text-rzslider-limit-color); } + +.rz-bubble.rz-limit.rz-ceil { + position: absolute; + right: 0; + left: auto !important; + top: -26px; +} + input, button, select, diff --git a/app/assets/ico/route.svg b/app/assets/ico/route.svg index 45e637677..ed083802d 100644 --- a/app/assets/ico/route.svg +++ b/app/assets/ico/route.svg @@ -1,3 +1 @@ - - - + \ No newline at end of file diff --git a/app/kubernetes/views/resource-pools/components/storage-class-switch/storage-class-switch.html b/app/kubernetes/views/resource-pools/components/storage-class-switch/storage-class-switch.html index dc52f5f00..6f65e39ef 100644 --- a/app/kubernetes/views/resource-pools/components/storage-class-switch/storage-class-switch.html +++ b/app/kubernetes/views/resource-pools/components/storage-class-switch/storage-class-switch.html @@ -1,8 +1,9 @@
-
+
- -
+ +
+ +
+
+
+

This field is required.

+

This field must consist of lower case alphanumeric characters or '-', and + contain at most 63 characters, and must start and end with an alphanumeric character.

+
+

Prefix "kube-" is reserved for Kubernetes system namespaces.

+
+
+
-
-
-
-

This field is required.

-

This field must consist of lower case alphanumeric characters or '-', and contain at most 63 - characters, and must start and end with an alphanumeric character.

-
-

Prefix "kube-" is reserved for Kubernetes system namespaces.

-
-
+
Quota
@@ -50,31 +55,39 @@
-

- +

+ A namespace segments the underlying physical Kubernetes cluster into smaller virtual clusters. You should assign a capped limit of resources to this namespace or disable for the safe operation of your platform.

- - +
-
- -

At least a single limit must be set for the quota to be valid.

-
-
Resource limits
+
+ +

At least a single limit must be set for the quota to be + valid. +

+
+
+
- +
+ +
+
+
+

Value must be between + {{ $ctrl.defaults.MemoryLimit }} and + {{ $ctrl.state.sliderMaxMemory }} +

+
+
+
+
-

Maximum memory usage (MB)

-
-
-
-
-
-

Value must be between {{ $ctrl.defaults.MemoryLimit }} and {{ $ctrl.state.sliderMaxMemory }} -

-
+

Maximum memory usage (MB)

- +
-
+

Maximum CPU usage

@@ -141,8 +158,8 @@
Load balancers
- - + + You can set a quota on the amount of external load balancers that can be created inside this namespace. Set this quota to 0 to effectively disable the use of load balancers in this namespace. @@ -152,6 +169,7 @@ Storage
- - + + Quotas can be set on each storage option to prevent users from exceeding a specific threshold when deploying applications. You can set a quota to 0 to effectively prevent the usage of a specific storage option inside this namespace.
-
- +
+ standard
@@ -192,25 +210,30 @@
-

- +

+ Enable and configure ingresses available to users when deploying applications.

-
-
- {{ ic.IngressClass.Name }} +
+
+ {{ ic.IngressClass.Name }} +
-
- - +
+
+ +
+
+ +
@@ -224,20 +247,15 @@ > - - add hostname + + add hostname
-
-
+
+
-
- Hostname +
+ Hostname
-
-

Hostname is required.

+

Hostname is required.

- + This field must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com').

- This hostname is already used. + This hostname is already used.

-
-
-

- +

+
+

+ You can specify a list of annotations that will be associated to the ingress.

- - - add annotation - - - - - add rewrite annotation - - - - - add regular expression annotation - - - + + + +
-
-
+
+
Key
-
+
Value
-
+
@@ -378,15 +394,15 @@
Registries
-

- - Define which registry can be used by users who have access to this namespace. +

+ + Define which registries can be used by users who have access to this namespace.

- +
No registries available. Head over registry view to define container registry. @@ -404,7 +420,7 @@ tick-property="Checked" helper-elements="filter" search-property="Name" - translation="{nothingSelected: 'Select one or more registry', search: 'Search...'}" + translation="{nothingSelected: 'Select one or more registries', search: 'Search...'}" data-cy="namespaceCreate-registrySelect" > @@ -422,7 +438,7 @@