Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Aug 1, 2024
1 parent ca7709b commit 144be4a
Show file tree
Hide file tree
Showing 56 changed files with 4,627 additions and 642 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ require (
kmodules.xyz/custom-resources v0.30.0
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/monitoring-agent-api v0.29.0
kmodules.xyz/resource-metadata v0.18.11-0.20240716143135-3c70c575263f
kmodules.xyz/resource-metadata v0.18.11-0.20240801121907-3b8057640555
kmodules.xyz/resource-metrics v0.30.2-0.20240711131537-5e9d22977a2c
kmodules.xyz/resource-metrics/utils v0.30.1
kmodules.xyz/sets v0.29.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ kmodules.xyz/monitoring-agent-api v0.29.0 h1:gpFl6OZrlMLb/ySMHdREI9EwGtnJ91oZBn9
kmodules.xyz/monitoring-agent-api v0.29.0/go.mod h1:iNbvaMTgVFOI5q2LJtGK91j4Dmjv4ZRiRdasGmWLKQI=
kmodules.xyz/offshoot-api v0.29.4 h1:WQV2BIUIoVKKiqZNmZ4gAy367jEdwBhEl3dFCLZM1qA=
kmodules.xyz/offshoot-api v0.29.4/go.mod h1:e+NQ0s4gW/YTPWBWEfdISZcmk+tlTq8IjvP5SLdqvko=
kmodules.xyz/resource-metadata v0.18.11-0.20240716143135-3c70c575263f h1:otoHIu8LqgbogS2c3pVeG7ZXhtGKPbQ6+08csyc3gs8=
kmodules.xyz/resource-metadata v0.18.11-0.20240716143135-3c70c575263f/go.mod h1:1mOc2/WgOsn+f4tBKbHw8JgjWAEF52I6gOsVpyUE10M=
kmodules.xyz/resource-metadata v0.18.11-0.20240801121907-3b8057640555 h1:1MdrMDc+nXsd7iUK76G74gh5ZFeb589FeKdAFHHt46c=
kmodules.xyz/resource-metadata v0.18.11-0.20240801121907-3b8057640555/go.mod h1:1mOc2/WgOsn+f4tBKbHw8JgjWAEF52I6gOsVpyUE10M=
kmodules.xyz/resource-metrics v0.30.2-0.20240711131537-5e9d22977a2c h1:lh7s0AXSRezZx0YnKSmB5GqGpTk3PQ9xCYxhqdbNFjU=
kmodules.xyz/resource-metrics v0.30.2-0.20240711131537-5e9d22977a2c/go.mod h1:UYcQQLN+3o8rNPQJwJa2D9bt5ihJCeo5bCDuQ4O3MPY=
kmodules.xyz/resource-metrics/utils v0.30.1 h1:iRnAKNMMdAi7QYjMQrK9W3vNMhSC21RWNx9yS3qlpTA=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ type WorkloadInfo struct {
metav1.GroupVersionKind `json:",inline"`
// Selector specifies label selector that should be used to select this workload
Selector map[string]string `json:"selector"`
Optional string `json:"optional,omitempty"`
}

type ChartInfo struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ spec:
type:
group: ""
kind: Namespace
- name: ClusterChartPresets
type:
group: charts.x-helm.dev
kind: ClusterChartPreset
- name: Limit Ranges
type:
group: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ spec:
type:
group: kubedb.com
kind: MariaDB
- featureMode: GA
layoutName: kubedb.com-v1-memcacheds-kubedb
name: Memcached
required: true
type:
group: kubedb.com
kind: Memcached
- featureMode: GA
layoutName: kubedb.com-v1-mongodbs-kubedb
name: MongoDB
Expand All @@ -49,6 +56,20 @@ spec:
type:
group: kubedb.com
kind: MySQL
- featureMode: GA
layoutName: kubedb.com-v1-perconaxtradbs-kubedb
name: PerconaXtraDB
required: true
type:
group: kubedb.com
kind: PerconaXtraDB
- featureMode: GA
layoutName: kubedb.com-v1-pgbouncers-kubedb
name: PgBouncer
required: true
type:
group: kubedb.com
kind: PgBouncer
- featureMode: GA
layoutName: kubedb.com-v1-postgreses-kubedb
name: PostgreSQL
Expand All @@ -69,6 +90,12 @@ spec:
type:
group: kubedb.com
kind: Redis
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-clickhouses-kubedb
name: ClickHouse
type:
group: kubedb.com
kind: ClickHouse
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-druids-kubedb
name: Druid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ spec:
type:
group: kubedb.com
kind: MariaDB
- featureMode: GA
layoutName: kubedb.com-v1-memcacheds-kubedb
name: Memcached
required: true
type:
group: kubedb.com
kind: Memcached
- featureMode: GA
layoutName: kubedb.com-v1-mongodbs-kubedb
name: MongoDB
Expand All @@ -49,6 +56,20 @@ spec:
type:
group: kubedb.com
kind: MySQL
- featureMode: GA
layoutName: kubedb.com-v1-perconaxtradbs-kubedb
name: PerconaXtraDB
required: true
type:
group: kubedb.com
kind: PerconaXtraDB
- featureMode: GA
layoutName: kubedb.com-v1-pgbouncers-kubedb
name: PgBouncer
required: true
type:
group: kubedb.com
kind: PgBouncer
- featureMode: GA
layoutName: kubedb.com-v1-postgreses-kubedb
name: PostgreSQL
Expand All @@ -69,6 +90,12 @@ spec:
type:
group: kubedb.com
kind: Redis
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-clickhouses-kubedb
name: ClickHouse
type:
group: kubedb.com
kind: ClickHouse
- featureMode: ALPHA
layoutName: kubedb.com-v1alpha2-druids-kubedb
name: Druid
Expand Down
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: Elasticsearch
k8s.io/resource: elasticsearches
k8s.io/version: v1
name: kubedb.com-v1-elasticsearches
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: Elasticsearch Version
query:
byLabel: catalog
type: GraphQL
ref:
group: catalog.kubedb.com
kind: ElasticsearchVersion
- 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: Elasticsearch
name: elasticsearches
scope: Namespaced
version: v1
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: Kafka
k8s.io/resource: kafkas
k8s.io/version: v1
name: kubedb.com-v1-kafkas
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: Kafka Version
query:
byLabel: catalog
type: GraphQL
ref:
group: catalog.kubedb.com
kind: KafkaVersion
- 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: Kafka
name: kafkas
scope: Namespaced
version: v1
Loading

0 comments on commit 144be4a

Please sign in to comment.