-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tamal Saha <[email protected]>
- Loading branch information
Showing
9 changed files
with
369 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
...source-metadata/hub/resourceblockdefinitions/core.kubestash.com/v1alpha1/apps-backup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-apps-backup | ||
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 |
74 changes: 74 additions & 0 deletions
74
...etadata/hub/resourceblockdefinitions/monitoring.coreos.com/v1/apps-monitoring-kubedb.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: meta.k8s.appscode.com/v1alpha1 | ||
kind: ResourceBlockDefinition | ||
metadata: | ||
creationTimestamp: null | ||
name: monitoring.coreos.com-v1-apps-monitoring-kubedb | ||
spec: | ||
blocks: | ||
- actions: | ||
create: Never | ||
displayMode: List | ||
kind: Connection | ||
name: Service Monitors | ||
query: | ||
raw: |- | ||
query Find($src: String!, $targetGroup: String!, $targetKind: String!) { | ||
find(oid: $src) { | ||
exposed_by(group: "", kind: "Service") { | ||
refs: monitored_by(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: monitoring.coreos.com | ||
kind: ServiceMonitor | ||
- actions: | ||
create: Never | ||
displayMode: List | ||
kind: Connection | ||
name: Pod Monitors | ||
query: | ||
raw: |- | ||
query Find($src: String!, $targetGroup: String!, $targetKind: String!) { | ||
find(oid: $src) { | ||
exposed_by(group: "", kind: "Service") { | ||
refs: monitored_by(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: monitoring.coreos.com | ||
kind: PodMonitor | ||
- actions: | ||
create: Never | ||
displayMode: List | ||
kind: Connection | ||
name: Prometheus | ||
query: | ||
raw: |- | ||
query Find($src: String!, $targetGroup: String!, $targetKind: String!) { | ||
find(oid: $src) { | ||
services: exposed_by(group: "", kind: "Service") { | ||
refs: monitored_by(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
refs: monitored_by(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: monitoring.coreos.com | ||
kind: Prometheus |
117 changes: 117 additions & 0 deletions
117
...ource-metadata/hub/resourceblockdefinitions/stash.appscode.com/v1/apps-backup-kubedb.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
apiVersion: meta.k8s.appscode.com/v1alpha1 | ||
kind: ResourceBlockDefinition | ||
metadata: | ||
creationTimestamp: null | ||
name: stash.appscode.com-v1-apps-backup-kubedb | ||
spec: | ||
blocks: | ||
- actions: | ||
create: Never | ||
displayMode: List | ||
kind: Connection | ||
name: Repository | ||
query: | ||
raw: |- | ||
query Find($src: String!, $targetGroup: String!, $targetKind: String!) { | ||
find(oid: $src) { | ||
backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") { | ||
refs: offshoot(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: stash.appscode.com | ||
kind: Repository | ||
requiredFeatureSets: | ||
opscenter-backup: | ||
- stash | ||
- actions: | ||
create: Never | ||
displayMode: List | ||
kind: Connection | ||
name: Backup Configuration | ||
query: | ||
byLabel: backup_via | ||
type: GraphQL | ||
ref: | ||
group: stash.appscode.com | ||
kind: BackupConfiguration | ||
requiredFeatureSets: | ||
opscenter-backup: | ||
- stash | ||
- 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: "stash.appscode.com", kind: "BackupConfiguration") { | ||
refs: offshoot(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: stash.appscode.com | ||
kind: BackupSession | ||
requiredFeatureSets: | ||
opscenter-backup: | ||
- stash | ||
- actions: | ||
create: Never | ||
displayMode: List | ||
kind: Connection | ||
name: Recent Restores | ||
query: | ||
raw: |- | ||
query Find($src: String!, $targetGroup: String!, $targetKind: String!) { | ||
find(oid: $src) { | ||
backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") { | ||
refs: offshoot(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: stash.appscode.com | ||
kind: RestoreSession | ||
requiredFeatureSets: | ||
opscenter-backup: | ||
- stash | ||
- 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: "stash.appscode.com", kind: "BackupConfiguration") { | ||
refs: offshoot(group: $targetGroup, kind: $targetKind) { | ||
namespace | ||
name | ||
} | ||
} | ||
} | ||
} | ||
type: GraphQL | ||
ref: | ||
group: batch | ||
kind: CronJob | ||
requiredFeatureSets: | ||
opscenter-backup: | ||
- stash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.