Skip to content

Commit

Permalink
Add support for clickhouse & perconaxtradb (#450)
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha authored Jul 29, 2024
1 parent af48027 commit 4bd30ee
Show file tree
Hide file tree
Showing 10 changed files with 1,271 additions and 1 deletion.
106 changes: 106 additions & 0 deletions hub/resourceblockdefinitions/kubedb.com/v1alpha2/clickhouses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
apiVersion: meta.k8s.appscode.com/v1alpha1
kind: ResourceBlockDefinition
metadata:
creationTimestamp: null
labels:
k8s.io/group: kubedb.com
k8s.io/kind: ClickHouse
k8s.io/resource: clickhouses
k8s.io/version: v1alpha2
name: kubedb.com-v1alpha2-clickhouses
spec:
blocks:
- actions:
create: Never
displayMode: List
kind: Connection
name: Client Connections
query:
byLabel: connect_via
type: GraphQL
ref:
group: appcatalog.appscode.com
kind: AppBinding
- actions:
create: Never
displayMode: List
kind: Connection
name: ClickHouse Version
query:
byLabel: catalog
type: GraphQL
ref:
group: catalog.kubedb.com
kind: ClickHouseVersion
- actions:
create: Never
displayMode: List
kind: Connection
name: PetSets
query:
byLabel: offshoot
type: GraphQL
ref:
group: apps.k8s.appscode.com
kind: PetSet
- actions:
create: Never
displayMode: List
kind: Connection
name: Pods
query:
byLabel: offshoot
type: GraphQL
ref:
group: ""
kind: Pod
- actions:
create: Never
displayMode: List
kind: Connection
name: Services
query:
byLabel: exposed_by
type: GraphQL
ref:
group: ""
kind: Service
- actions:
create: Never
displayMode: List
kind: Connection
name: Secrets
query:
byLabel: config
type: GraphQL
ref:
group: ""
kind: Secret
- actions:
create: Never
displayMode: List
kind: Connection
name: PersistentVolumeClaims
query:
byLabel: storage
type: GraphQL
ref:
group: ""
kind: PersistentVolumeClaim
- actions:
create: Never
displayMode: List
kind: Connection
name: Pod Disruption Budgets
query:
byLabel: policy
type: GraphQL
ref:
group: policy
kind: PodDisruptionBudget
resource:
group: kubedb.com
kind: ClickHouse
name: clickhouses
scope: Namespaced
version: v1alpha2
19 changes: 18 additions & 1 deletion hub/resourceeditors/kubedb.com/v1alpha2/clickhouses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
k8s.io/version: v1alpha2
name: kubedb.com-v1alpha2-clickhouses
spec:
icons:
- src: https://cdn.appscode.com/k8s/icons/kubedb.com/clickhouses.svg
type: image/svg+xml
- src: https://cdn.appscode.com/k8s/icons/kubedb.com/clickhouses.png
type: image/png
resource:
group: kubedb.com
kind: ClickHouse
Expand All @@ -23,4 +28,16 @@ spec:
kind: HelmRepository
name: appscode-charts-oci
version: v0.4.21
enforceQuota: false
enforceQuota: true
options:
name: kubedbcom-clickhouse-editor-options
sourceRef:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.4.20
variants:
- name: default
selector:
matchLabels:
charts.x-helm.dev/is-default-preset: "true"
Loading

0 comments on commit 4bd30ee

Please sign in to comment.