From e779939ae11276975ec72fe7384376eb8c1aa5bc Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-org@users.noreply.github.com> Date: Thu, 28 Jul 2022 11:17:32 +1200 Subject: [PATCH] feature(ui): ui improvements kube config add from EE-3471 (#7341) --- .../kubernetesConfigurationData.html | 62 ++++++++++--------- .../kubernetesConfigurationDataController.js | 1 + .../create/createConfiguration.html | 45 +++++++------- 3 files changed, 57 insertions(+), 51 deletions(-) diff --git a/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationData.html b/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationData.html index e2c901228..15fa9683c 100644 --- a/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationData.html +++ b/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationData.html @@ -4,20 +4,20 @@

- - Advanced mode + + Advanced mode - - Simple mode + + Simple mode

-
- +
+ Switch to advanced mode to copy and paste multiple key/values
-
- +
+ Generate a configuration entry per line, use YAML format
@@ -25,18 +25,18 @@
- -
+ +
-

This field is required.

+

This field is required.

-

This key is already defined.

-

This key is invalid. A valid key must consist of alphanumeric characters, '-', '_' or '.'

+
+

+ This key is already defined. +

+
+

+ This key is invalid. A valid key must consist of alphanumeric characters, '-', '_' or '.' +

- -
+ +
-
+
-

This field is required.

+

This field is required.

- -
Value +
Binary data
-
-
+
+
- + This key is currently used by one or more applications
diff --git a/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js b/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js index af7685b12..5ce32f964 100644 --- a/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js +++ b/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js @@ -1,3 +1,4 @@ +import { Buffer } from 'buffer'; import angular from 'angular'; import _ from 'lodash-es'; import chardet from 'chardet'; diff --git a/app/kubernetes/views/configurations/create/createConfiguration.html b/app/kubernetes/views/configurations/create/createConfiguration.html index 24f020645..c3971ad9c 100644 --- a/app/kubernetes/views/configurations/create/createConfiguration.html +++ b/app/kubernetes/views/configurations/create/createConfiguration.html @@ -15,8 +15,8 @@
- -
+ +
-
+
-

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.

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.

-

A configuration with the same name already exists inside the selected namespace.

A configuration with the same name already exists inside the selected namespace.

@@ -51,8 +51,8 @@
- -
+ +