Skip to content

Commit a2b7b86

Browse files
Generate editor charts (#1029)
Signed-off-by: Arnob kumar saha <arnob@appscode.com>
1 parent ab1734c commit a2b7b86

169 files changed

Lines changed: 228438 additions & 116656 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

charts/kubedbcom-cassandra-editor/Chart.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
annotations:
22
meta.x-helm.dev/editor: '{"group":"kubedb.com","version":"v1alpha2","resource":"cassandras"}'
33
meta.x-helm.dev/form-keys: monitoringCoreosComPrometheusRule
4-
meta.x-helm.dev/resource-keys: autoscalingKubedbComCassandraAutoscaler,certManagerIoIssuer_ca,coreKubestashComBackupBlueprint,coreKubestashComBackupConfiguration,coreKubestashComRestoreSession,kubedbComCassandra,monitoringCoreosComServiceMonitor,secret_auth,secret_config
4+
meta.x-helm.dev/resource-keys: autoscalingKubedbComCassandraAutoscaler,catalogAppscodeComCassandraBinding,certManagerIoIssuer_ca,coreKubestashComBackupBlueprint,coreKubestashComBackupConfiguration,coreKubestashComRestoreSession,kubedbComCassandra,monitoringCoreosComServiceMonitor,secret_auth,secret_config
55
meta.x-helm.dev/resources: |
66
- group: ""
77
kind: Secret
88
version: v1
99
- group: autoscaling.kubedb.com
1010
kind: CassandraAutoscaler
1111
version: v1alpha1
12+
- group: catalog.appscode.com
13+
kind: CassandraBinding
14+
version: v1alpha1
1215
- group: cert-manager.io
1316
kind: Issuer
1417
version: v1
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: cassandrabindings.catalog.appscode.com
5+
spec:
6+
group: catalog.appscode.com
7+
names:
8+
kind: CassandraBinding
9+
listKind: CassandraBindingList
10+
plural: cassandrabindings
11+
singular: cassandrabinding
12+
scope: Namespaced
13+
versions:
14+
- name: v1alpha1
15+
schema:
16+
openAPIV3Schema:
17+
description: CassandraBinding is the Schema for the cassandrabindings API
18+
properties:
19+
apiVersion:
20+
description: |-
21+
APIVersion defines the versioned schema of this representation of an object.
22+
Servers should convert recognized schemas to the latest internal value, and
23+
may reject unrecognized values.
24+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
25+
type: string
26+
kind:
27+
description: |-
28+
Kind is a string value representing the REST resource this object represents.
29+
Servers may infer this from the endpoint the client submits requests to.
30+
Cannot be updated.
31+
In CamelCase.
32+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33+
type: string
34+
metadata:
35+
type: object
36+
spec:
37+
description: BindingSpec defines the desired state of Binding
38+
properties:
39+
sourceRef:
40+
description: SourceRef refers to the source app instance.
41+
properties:
42+
name:
43+
description: |-
44+
Name of the referent.
45+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
46+
type: string
47+
namespace:
48+
description: |-
49+
Namespace of the referent.
50+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
51+
type: string
52+
required:
53+
- name
54+
type: object
55+
uiExposure:
56+
description: UIExposure holds the specification of UI exposer
57+
properties:
58+
disableCostEfficiency:
59+
type: boolean
60+
disableUI:
61+
type: boolean
62+
required:
63+
- disableCostEfficiency
64+
- disableUI
65+
type: object
66+
required:
67+
- sourceRef
68+
type: object
69+
type: object
70+
served: true
71+
storage: true
72+
status:
73+
acceptedNames:
74+
kind: ""
75+
plural: ""
76+
conditions: null
77+
storedVersions: null
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- with .Values.resources }}
2+
{{- with .catalogAppscodeComCassandraBinding }}
3+
{{- . | toYaml }}
4+
{{- end }}
5+
{{- end }}

charts/kubedbcom-cassandra-editor/templates/monitoring/alert.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $app := (include "kubedbcom-cassandra-editor.fullname" .) }}
22

3-
{{ if (include "kubedbcom-cassandra-editor.alertsEnabled" .Values.form.alert.enabled) }}
3+
{{ if (include "kubedbcom-cassandra-editor.alertsEnabled" .Values.form.alert.enabled) }}
44
apiVersion: monitoring.coreos.com/v1
55
kind: PrometheusRule
66
metadata:
@@ -9,14 +9,13 @@ metadata:
99
labels:
1010
app.kubernetes.io/managed-by: {{ .Release.Service }}
1111
{{- include "kubedbcom-cassandra-editor.selectorLabels" . | nindent 4 }}
12-
{{- if .Values.form.alert.labels }}
13-
{{- toYaml .Values.form.alert.labels | nindent 4 }}
14-
{{- end }}
15-
{{- if .Values.form.alert.annotations }}
16-
annotations:
17-
{{- toYaml .Values.form.alert.annotations | nindent 4 }}
18-
{{- end }}
19-
spec:
12+
{{- if .Values.form.alert.labels }}
13+
{{- toYaml .Values.form.alert.labels | nindent 4 }}
14+
{{- end }}
15+
{{- if .Values.form.alert.annotations }}
16+
annotations:
17+
{{- toYaml .Values.form.alert.annotations | nindent 4 }}
18+
{{- end }}
2019
spec:
2120
groups:
2221
{{ with .Values.form.alert.groups.database -}}
@@ -25,7 +24,7 @@ spec:
2524
rules:
2625
{{ if (include "kubedbcom-cassandra-editor.alertEnabled" (list $.Values.form.alert.enabled .enabled .rules.cassandraDown.enabled .rules.cassandraDown.severity)) -}}
2726
- alert: CassandraDown
28-
expr: (count(up{job="{{ $app }}-stats",namespace="{{ $.Release.Namespace }}"} == 0) OR vector(0) ) > {{.rules.cassandraDown.duration}}
27+
expr: (count(up{job="{{ $app }}-stats",namespace="{{ $.Release.Namespace }}"} == 0) OR vector(0) ) > {{.rules.cassandraDown.val}}
2928
for: {{ .rules.cassandraDown.duration }}
3029
labels:
3130
severity: {{ .rules.cassandraDown.severity }}
@@ -121,4 +120,4 @@ spec:
121120
{{ end -}}
122121
{{ end -}}
123122

124-
{{ end }}
123+
{{ end }}

charts/kubedbcom-cassandra-editor/values.openapiv3_schema.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,52 @@ properties:
437437
required:
438438
- spec
439439
type: object
440+
catalogAppscodeComCassandraBinding:
441+
properties:
442+
apiVersion:
443+
type: string
444+
kind:
445+
type: string
446+
metadata:
447+
properties:
448+
annotations:
449+
additionalProperties:
450+
type: string
451+
type: object
452+
labels:
453+
additionalProperties:
454+
type: string
455+
type: object
456+
name:
457+
type: string
458+
namespace:
459+
type: string
460+
type: object
461+
spec:
462+
properties:
463+
sourceRef:
464+
properties:
465+
name:
466+
type: string
467+
namespace:
468+
type: string
469+
required:
470+
- name
471+
type: object
472+
uiExposure:
473+
properties:
474+
disableCostEfficiency:
475+
type: boolean
476+
disableUI:
477+
type: boolean
478+
required:
479+
- disableCostEfficiency
480+
- disableUI
481+
type: object
482+
required:
483+
- sourceRef
484+
type: object
485+
type: object
440486
certManagerIoIssuer_ca:
441487
properties:
442488
apiVersion:

charts/kubedbcom-cassandra-editor/values.yaml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,36 @@ form:
88
enabled: warning
99
rules:
1010
cassandraConnectionTimeouts:
11-
duration: 1m
11+
duration: 0m
1212
enabled: true
1313
severity: warning
1414
val: 100
1515
cassandraDown:
16-
duration: 1m
16+
duration: 0m
1717
enabled: true
1818
severity: critical
1919
cassandraDroppedMessages:
20-
duration: 1m
20+
duration: 0m
2121
enabled: true
2222
severity: warning
2323
val: 1
2424
cassandraHighReadLatency:
25-
duration: 1m
25+
duration: 0m
2626
enabled: true
2727
severity: warning
2828
val: 7000
2929
cassandraHighWriteLatency:
30-
duration: 1m
30+
duration: 0m
3131
enabled: true
3232
severity: warning
3333
val: 7000
3434
cassandraMemoryLimit:
35-
duration: 1m
35+
duration: 0m
3636
enabled: true
3737
severity: critical
3838
val: 3.3554432e+07
3939
cassandraServiceRespawn:
40-
duration: 1m
40+
duration: 0m
4141
enabled: true
4242
severity: critical
4343
val: 180
@@ -86,10 +86,20 @@ resources:
8686
nodeTopology:
8787
name: standard-basv2-family
8888
databaseRef:
89-
name: repl
89+
name: cassandra
9090
opsRequestOptions:
9191
apply: IfReady
9292
timeout: 10m
93+
catalogAppscodeComCassandraBinding: # +doc-gen:break
94+
apiVersion: catalog.appscode.com/v1alpha1
95+
kind: CassandraBinding
96+
metadata:
97+
name: cassandra
98+
namespace: demo
99+
spec:
100+
sourceRef:
101+
name: cassandra
102+
namespace: demo
93103
certManagerIoIssuer_ca: # +doc-gen:break
94104
apiVersion: cert-manager.io/v1
95105
kind: Issuer
@@ -137,7 +147,7 @@ resources:
137147
name: cassandra-frequent-backup
138148
repositories:
139149
- backend: cassandra-backend
140-
directory: /mongo-repo
150+
directory: /cassandra-repo
141151
encryptionSecret:
142152
name: cassandra-encryption-secret
143153
namespace: demo
@@ -203,7 +213,7 @@ resources:
203213
name: cassandra-frequent-backup
204214
repositories:
205215
- backend: cassandra-backend
206-
directory: /mongo-repo
216+
directory: /cassandra-repo
207217
encryptionSecret:
208218
name: cassandra-encryption-secret
209219
namespace: demo

charts/kubedbcom-clickhouse-editor/Chart.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
annotations:
22
meta.x-helm.dev/editor: '{"group":"kubedb.com","version":"v1alpha2","resource":"clickhouses"}'
3-
meta.x-helm.dev/resource-keys: autoscalingKubedbComClickHouseAutoscaler,certManagerIoIssuer_ca,kubedbComClickHouse,monitoringCoreosComServiceMonitor,secret_auth,secret_config
3+
meta.x-helm.dev/resource-keys: autoscalingKubedbComClickHouseAutoscaler,catalogAppscodeComClickHouseBinding,certManagerIoIssuer_ca,coreKubestashComBackupBlueprint,coreKubestashComBackupConfiguration,coreKubestashComRestoreSession,kubedbComClickHouse,monitoringCoreosComServiceMonitor,secret_auth,secret_config
44
meta.x-helm.dev/resources: |
55
- group: ""
66
kind: Secret
77
version: v1
88
- group: autoscaling.kubedb.com
99
kind: ClickHouseAutoscaler
1010
version: v1alpha1
11+
- group: catalog.appscode.com
12+
kind: ClickHouseBinding
13+
version: v1alpha1
1114
- group: cert-manager.io
1215
kind: Issuer
1316
version: v1
17+
- group: core.kubestash.com
18+
kind: BackupBlueprint
19+
version: v1alpha1
20+
- group: core.kubestash.com
21+
kind: BackupConfiguration
22+
version: v1alpha1
23+
- group: core.kubestash.com
24+
kind: RestoreSession
25+
version: v1alpha1
1426
- group: kubedb.com
1527
kind: ClickHouse
1628
version: v1alpha2
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: clickhousebindings.catalog.appscode.com
5+
spec:
6+
group: catalog.appscode.com
7+
names:
8+
kind: ClickHouseBinding
9+
listKind: ClickHouseBindingList
10+
plural: clickhousebindings
11+
singular: clickhousebinding
12+
scope: Namespaced
13+
versions:
14+
- name: v1alpha1
15+
schema:
16+
openAPIV3Schema:
17+
description: ClickHouseBinding is the Schema for the clickhousebindings API
18+
properties:
19+
apiVersion:
20+
description: |-
21+
APIVersion defines the versioned schema of this representation of an object.
22+
Servers should convert recognized schemas to the latest internal value, and
23+
may reject unrecognized values.
24+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
25+
type: string
26+
kind:
27+
description: |-
28+
Kind is a string value representing the REST resource this object represents.
29+
Servers may infer this from the endpoint the client submits requests to.
30+
Cannot be updated.
31+
In CamelCase.
32+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33+
type: string
34+
metadata:
35+
type: object
36+
spec:
37+
description: BindingSpec defines the desired state of Binding
38+
properties:
39+
sourceRef:
40+
description: SourceRef refers to the source app instance.
41+
properties:
42+
name:
43+
description: |-
44+
Name of the referent.
45+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
46+
type: string
47+
namespace:
48+
description: |-
49+
Namespace of the referent.
50+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
51+
type: string
52+
required:
53+
- name
54+
type: object
55+
uiExposure:
56+
description: UIExposure holds the specification of UI exposer
57+
properties:
58+
disableCostEfficiency:
59+
type: boolean
60+
disableUI:
61+
type: boolean
62+
required:
63+
- disableCostEfficiency
64+
- disableUI
65+
type: object
66+
required:
67+
- sourceRef
68+
type: object
69+
type: object
70+
served: true
71+
storage: true
72+
status:
73+
acceptedNames:
74+
kind: ""
75+
plural: ""
76+
conditions: null
77+
storedVersions: null

0 commit comments

Comments
 (0)