Skip to content

Commit

Permalink
Use different backup page for kubedb-ui
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <[email protected]>
  • Loading branch information
RokibulHasan7 committed Mar 14, 2024
1 parent bd5daad commit 2dd0385
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiVersion: meta.k8s.appscode.com/v1alpha1
kind: ResourceBlockDefinition
metadata:
creationTimestamp: null
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
spec:
blocks:
- actions:
create: Never
displayMode: List
kind: Connection
name: Recent Backups
query:
raw: |-
query Find($src: String!, $targetGroup: String!, $targetKind: String!) {
find(oid: $src) {
backup_via(group: "core.kubestash.com", kind: "BackupConfiguration") {
refs: source(group: $targetGroup, kind: $targetKind) {
namespace
name
}
}
}
}
type: GraphQL
ref:
group: core.kubestash.com
kind: BackupSession
- actions:
create: Never
displayMode: List
kind: Connection
name: Recent Restores
query:
byLabel: restore_into
type: GraphQL
ref:
group: core.kubestash.com
kind: RestoreSession
- actions:
create: Never
displayMode: List
kind: Connection
name: Backup Configuration
query:
byLabel: backup_via
type: GraphQL
ref:
group: core.kubestash.com
kind: BackupConfiguration
- actions:
create: Never
displayMode: List
kind: Connection
name: Repository
query:
byLabel: backup_via
type: GraphQL
ref:
group: storage.kubestash.com
kind: Repository
- actions:
create: Never
displayMode: List
kind: Connection
name: CronJobs
query:
raw: |-
query Find($src: String!, $targetGroup: String!, $targetKind: String!) {
find(oid: $src) {
backup_via(group: "core.kubestash.com", kind: "BackupConfiguration") {
refs: offshoot(group: $targetGroup, kind: $targetKind) {
namespace
name
}
}
}
}
type: GraphQL
ref:
group: batch
kind: CronJob
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Security
sections:
- blocks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Security
sections:
- blocks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Monitoring
sections:
- blocks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Security
sections:
- blocks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Security
sections:
- blocks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Security
sections:
- blocks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ spec:
sections:
- blocks:
- kind: Block
name: core.kubestash.com-v1alpha1-kubedb-backup
name: core.kubestash.com-v1alpha1-kubedb-backup-kubedb-ui
- name: Security
sections:
- blocks:
Expand Down

0 comments on commit 2dd0385

Please sign in to comment.