Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,125 +1,125 @@
step:
- type: single-step-form
loader: initBundle
elements:
- loader: getNamespaces
label: Namespace
- elements:
- label: Namespace
loader: getNamespaces
schema: schema/properties/metadata/properties/release/properties/namespace
type: select
- label: Name
schema: schema/properties/metadata/properties/release/properties/name
type: input
- loader: getData|storageRef
label: Storage Ref
- label: Storage Ref
loader: getData|storageRef
schema: schema/properties/spec/properties/backend/properties/storageRef
type: select
- loader: getData|retentionPolicy
label: Retention Policy
- label: Retention Policy
loader: getData|retentionPolicy
schema: schema/properties/spec/properties/backend/properties/retentionPolicy
type: select
- elements:
- type: object-item
label: Labels
- label: Labels
schema: schema/properties/spec/properties/labels
- type: object-item
label: Annotations
type: object-item
- label: Annotations
schema: schema/properties/spec/properties/annotations
type: object-item
hideBlock: true
label: Labels & Annotations
showLabels: true
hideBlock: true
type: block-layout
- label: Sessions
elements:
- type: input
label: Session Name
schema: sessionName
- type: input
label: Schedule
schema: schedule
- type: input
label: Security Context (runAsUser)
schema: addon/properties/jobTemplate/properties/securityContext
- type: select
label: Addon Name
loader: getAddon
schema: addon/properties/name
- type: array-object-form
label: Tasks
validation:
type: required
elements:
- type: select
label: Task Name
loader:
name: getTaskNames
watchPaths:
- schema/properties/spec/properties/sessions/dynamicIndex/properties/addon/properties/name
schema: name
validation:
type: required
- type: editor
label: Params
schema: params
schema: addon/properties/tasks
- type: select
customClass: mt-4
label: Encryption Secret Namespace
loader: getNamespaces
schema: encryptionSecret/properties/namespace
- type: select
label: Encryption Secret Name
- elements:
- label: Session Name
schema: sessionName
type: input
- label: Schedule
schema: schedule
type: input
- label: Security Context (runAsUser)
schema: addon/properties/jobTemplate/properties/securityContext
type: input
- label: Addon Name
loader: getAddon
schema: addon/properties/name
type: select
- elements:
- label: Task Name
loader:
name: getTaskNames
watchPaths:
- schema/properties/spec/properties/sessions/dynamicIndex/properties/encryptionSecret/properties/namespace
name: getEncryptionSecretNames
schema: encryptionSecret/properties/name
- type: input
label: Repo Name
schema: repoName
- schema/properties/spec/properties/sessions/dynamicIndex/properties/addon/properties/name
schema: name
type: select
validation:
type: required
- label: Params
schema: params
type: editor
label: Tasks
schema: addon/properties/tasks
type: array-object-form
validation:
type: required
- customClass: mt-4
label: Encryption Secret Namespace
loader: getNamespaces
schema: encryptionSecret/properties/namespace
type: select
- label: Encryption Secret Name
loader:
name: getEncryptionSecretNames
watchPaths:
- schema/properties/spec/properties/sessions/dynamicIndex/properties/encryptionSecret/properties/namespace
schema: encryptionSecret/properties/name
type: select
- label: Repo Name
schema: repoName
type: input
label: Sessions
schema: schema/properties/spec/properties/sessions
type: array-object-form
- elements:
- loader: getApiGroup
label: Api Group
validation:
type: required
- label: Api Group
loader: getApiGroup
schema: schema/properties/spec/properties/target/properties/apiGroup
type: select
- loader:
name: getKinds
watchPaths:
- schema/properties/spec/properties/target/properties/apiGroup
label: Kind
watcher:
func: setVersion
paths:
- schema/properties/spec/properties/target/properties/kind
validation:
type: required
- label: Kind
loader:
name: getKinds
watchPaths:
- schema/properties/spec/properties/target/properties/apiGroup
schema: schema/properties/spec/properties/target/properties/kind
type: select
- loader: getNamespaces
label: Namespace
validation:
type: required
watcher:
func: setVersion
paths:
- schema/properties/spec/properties/target/properties/kind
- label: Namespace
loader: getNamespaces
schema: schema/properties/spec/properties/target/properties/namespace
type: select
- loader:
validation:
type: required
- label: Name
loader:
name: getTargetName
watchPaths:
- schema/properties/spec/properties/target/properties/namespace
- schema/properties/spec/properties/target/properties/kind
label: Name
- schema/properties/spec/properties/target/properties/namespace
- schema/properties/spec/properties/target/properties/kind
refresh: true
validation:
type: required
schema: schema/properties/spec/properties/target/properties/name
type: select
validation:
type: required
if:
type: function
name: showTarget
type: function
label: Target
showLabels: true
type: block-layout
id: options
loader: initBundle
type: single-step-form
type: multi-step-form
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
step:
- type: single-step-form
elements:
- loader: fetchNamespaces
hasGroup: isRancherManaged
- elements:
- hasGroup: isRancherManaged
label: Namespace
loader: fetchNamespaces
schema: schema/properties/metadata/properties/release/properties/namespace
type: select
- type: block-layout
- elements:
- label: Labels
schema: schema/properties/spec/properties/labels
type: object-item
- label: Annotations
schema: schema/properties/spec/properties/annotations
type: object-item
hideBlock: true
label: Labels & Annotations
showLabels: true
hideBlock: true
elements:
- type: object-item
label: Labels
schema: schema/properties/spec/properties/labels
- type: object-item
label: Annotations
schema: schema/properties/spec/properties/annotations
type: block-layout
- label: Invoker Kind
options:
- text: Backup Configurations
Expand All @@ -25,29 +24,29 @@ step:
value: BackupBlueprint
schema: schema/properties/spec/properties/invoker/properties/kind
type: select
- loader:
- label: Invoker Name
loader:
name: fetchInvokerName
watchPaths:
- schema/properties/spec/properties/invoker/properties/kind
- schema/properties/metadata/properties/release/properties/namespace
label: Invoker Name
- schema/properties/spec/properties/invoker/properties/kind
- schema/properties/metadata/properties/release/properties/namespace
schema: schema/properties/spec/properties/invoker/properties/name
type: select
watcher:
func: initName
paths:
- schema/properties/spec/properties/invoker/properties/name
schema: schema/properties/spec/properties/invoker/properties/name
type: select
- loader:
- schema/properties/spec/properties/invoker/properties/name
- label: Session
loader:
name: fetchSessions
watchPaths:
- schema/properties/spec/properties/invoker/properties/name
label: Session
- schema/properties/spec/properties/invoker/properties/name
schema: schema/properties/spec/properties/session
type: select
watcher:
func: initName
paths:
- schema/properties/spec/properties/session
schema: schema/properties/spec/properties/session
type: select
- schema/properties/spec/properties/session
- label: Timeout
options:
- text: 5 minutes
Expand All @@ -67,4 +66,5 @@ step:
schema: schema/properties/spec/properties/backupTimeout
type: select
id: options
type: single-step-form
type: multi-step-form
79 changes: 40 additions & 39 deletions charts/corekubestashcom-backupsession-editor/ui/create-ui.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
type: multi-step-form
step:
- type: single-step-form
id: basic
# label: Basic Information
elements:
- type: label-element
label: ''
subtitle: Select a backup configuration and choose which backup sessions to view or manage
- type: select
label: Backup Configuration
subtitle: Select the backup configuration that contains the sessions you want to view
schema: temp/properties/backup
validation:
type: required
refresh: true
loader: getOptions
watcher:
func: clearModel
paths:
- temp/properties/backup
- type: select
multiple: true
label: Backup Sessions
subtitle: Select one or more backup sessions to view their details and status
schema: temp/properties/selectedSessions
refresh: true
validation:
type: required
if:
type: function
name: isBackupSelected
loader:
name: getSessionOptions
watchPaths:
- temp/properties/backup
watcher:
func: buildCommand
paths:
- temp/properties/selectedSessions
- elements:
- label: ""
subtitle: Select a backup configuration and choose which backup sessions to view
or manage
type: label-element
- label: Backup Configuration
loader: getOptions
refresh: true
schema: temp/properties/backup
subtitle: Select the backup configuration that contains the sessions you want
to view
type: select
validation:
type: required
watcher:
func: clearModel
paths:
- temp/properties/backup
- if:
name: isBackupSelected
type: function
label: Backup Sessions
loader:
name: getSessionOptions
watchPaths:
- temp/properties/backup
multiple: true
refresh: true
schema: temp/properties/selectedSessions
subtitle: Select one or more backup sessions to view their details and status
type: select
validation:
type: required
watcher:
func: buildCommand
paths:
- temp/properties/selectedSessions
id: basic
type: single-step-form
type: multi-step-form
Loading
Loading