Skip to content

Commit

Permalink
Show Warning for internal docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Apr 30, 2024
1 parent fd6e484 commit 1f94e39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
9 changes: 4 additions & 5 deletions config/operator/base/ui-extensions/serverless/details
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions config/operator/base/ui-extensions/serverless/form
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions config/operator/base/ui-extensions/serverless/translations
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
en:
alert.internalregistry: Internal Docker Registry is not a highly available registry and should be used for development purpose only

0 comments on commit 1f94e39

Please sign in to comment.