Skip to content

Commit

Permalink
Add storage info to status widget in UI (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus authored Jan 12, 2025
1 parent 51a3b85 commit 1a284e6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
18 changes: 12 additions & 6 deletions config/operator/base/ui-extensions/dockerregistry/details
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
status:
body:
- name: Condition details
- name: status.storageType
source: status.storage
- name: status.deleteEnabled
source: status.deleteEnabled
- name: status.pvc
source: status.pvc
visibility: status.pvc
- name: status.conditions
widget: ConditionList
source: status.conditions
body:
- name: details.storage.title
widget: Panel
children:
- name: details.storage.type.title
source: status.storage
- widget: Alert
severity: warning
source: '"alert.filesystemstorage"'
visibility: $root.status.storage = 'filesystem'
- name: details.internalAccess
widget: Panel
visibility: "$exists(status.internalAccess.enabled)"
Expand Down
3 changes: 3 additions & 0 deletions config/operator/base/ui-extensions/dockerregistry/form
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@
kind: PersistentVolumeClaim
version: v1
scope: namespace
- name: details.storage.deleteEnabled
path: deleteEnabled
type: boolean
- name: details.externalAccess
path: spec.externalAccess
widget: FormGroup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
en:
alert:
filesystemstorage: Storage type `filesystem` uses non persistant storage. In this mode registry content will be dropped upon any reconfiguration.
status:
conditions: Conditions Details
storageType: Storage Type
deleteEnabled: Image Deletion Enabled
pvc: PVC
header:
ready: Ready
storage: Storage
Expand Down Expand Up @@ -37,3 +44,4 @@ en:
s3Secret: S3 Secret
gcsSecret: GCS Secret
btpObjectStoreSecret: BTP Object Store Secret
deleteEnabled: Image Deletion Enabled

0 comments on commit 1a284e6

Please sign in to comment.