From 1f94e39d90057deff8bd19fbecf5a3ce51e7345d Mon Sep 17 00:00:00 2001 From: "Kwiatosz, Krzysztof" Date: Tue, 30 Apr 2024 12:40:47 +0200 Subject: [PATCH] Show Warning for internal docker registry --- config/operator/base/ui-extensions/serverless/details | 9 ++++----- config/operator/base/ui-extensions/serverless/form | 4 ++-- .../base/ui-extensions/serverless/kustomization.yaml | 3 ++- .../operator/base/ui-extensions/serverless/translations | 2 ++ 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 config/operator/base/ui-extensions/serverless/translations diff --git a/config/operator/base/ui-extensions/serverless/details b/config/operator/base/ui-extensions/serverless/details index 393f354df..efdf0d861 100644 --- a/config/operator/base/ui-extensions/serverless/details +++ b/config/operator/base/ui-extensions/serverless/details @@ -6,6 +6,10 @@ header: positive: - 'Ready' body: + - widget: Alert + severity: warning + source: '"alert.internalregistry"' + visibility: $root.spec.dockerRegistry.enableInternal = true - name: Desired Specification widget: Panel children: @@ -53,11 +57,6 @@ body: - name: Target CPU utilisation for HPA source: spec.targetCPUUtilizationPercentage visibility: '$exists($value)' - - simple: true - widget: Alert - severity: warning - alert: "'Internal Docker Registry is not a highly available registry and should be used for development purpose only'" - visibility: "$root.spec.dockerRegistry.enableInternal = true" - name: Status widget: Panel children: diff --git a/config/operator/base/ui-extensions/serverless/form b/config/operator/base/ui-extensions/serverless/form index 2d3eb2d4c..2ea684d35 100644 --- a/config/operator/base/ui-extensions/serverless/form +++ b/config/operator/base/ui-extensions/serverless/form @@ -4,8 +4,8 @@ - simple: true widget: Alert severity: warning - alert: "'Internal Docker Registry is not a highly available registry and should be used for development purpose only'" - visibility: "$root.spec.dockerRegistry.enableInternal = true" + alert: '"alert.internalregistry"' + visibility: $root.spec.dockerRegistry.enableInternal = true - path: spec.dockerRegistry.secretName visibility: $root.spec.dockerRegistry.enableInternal != true simple: true diff --git a/config/operator/base/ui-extensions/serverless/kustomization.yaml b/config/operator/base/ui-extensions/serverless/kustomization.yaml index f3cb370f0..f1cb5ce1c 100644 --- a/config/operator/base/ui-extensions/serverless/kustomization.yaml +++ b/config/operator/base/ui-extensions/serverless/kustomization.yaml @@ -1,11 +1,12 @@ configMapGenerator: -- name: serverless.operator.kyma-project.io +- name: operator.kyma-project.io namespace: kyma-system files: - general - form - list - details + - translations options: disableNameSuffixHash: true labels: diff --git a/config/operator/base/ui-extensions/serverless/translations b/config/operator/base/ui-extensions/serverless/translations new file mode 100644 index 000000000..72944d61b --- /dev/null +++ b/config/operator/base/ui-extensions/serverless/translations @@ -0,0 +1,2 @@ +en: + alert.internalregistry: Internal Docker Registry is not a highly available registry and should be used for development purpose only \ No newline at end of file