Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display storage type under the storage formGroup widget #210

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions config/operator/base/ui-extensions/dockerregistry/form
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
- name: details.storage.title
var: storageType
type: string
reuired: true
dynamicValue: >-
$exists(spec.storage.azure) ? 'azure' :
$exists(spec.storage.s3) ? 's3' :
$exists(spec.storage.gcs) ? 'gcs' :
$exists(spec.storage.btpObjectStore) ? 'btpObjectStore' :
$exists(spec.storage.pvc) ? 'pvc' :
'filesystem'
trigger: [storage]
enum:
- filesystem
- azure
- s3
- gcs
- btpObjectStore
- pvc
- name: details.storage.title
path: spec.storage
widget: FormGroup
Expand All @@ -26,6 +7,25 @@
storage: undefined
# dynamic
children:
- name: details.storage.type.title
var: storageType
type: string
reuired: true
dynamicValue: >-
$exists(spec.storage.azure) ? 'azure' :
$exists(spec.storage.s3) ? 's3' :
$exists(spec.storage.gcs) ? 'gcs' :
$exists(spec.storage.btpObjectStore) ? 'btpObjectStore' :
$exists(spec.storage.pvc) ? 'pvc' :
'filesystem'
trigger: [storage]
enum:
- filesystem
- azure
- s3
- gcs
- btpObjectStore
- pvc
# Azure
- name: details.storage.azureSecret
path: azure.secretName
Expand Down
Loading