Skip to content

Commit f092871

Browse files
authored
Merge pull request #355 from xiacongling/helm-charts-ddc
feat: add doris operator for disaggregated cluster
2 parents 6307801 + 1477b55 commit f092871

File tree

7 files changed

+6232
-4
lines changed

7 files changed

+6232
-4
lines changed

.licenserc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ header:
1717
- "**/*.txt"
1818
- '**/.helmignore'
1919
- 'helm-charts/doris-operator/crds/doris.apache.com_dorisclusters.yaml'
20+
- 'helm-charts/doris-operator/crds/disaggregated.cluster.doris.com_dorisdisaggregatedclusters.yaml'
2021
- 'LICENSE'
2122
- 'NOTICE'
2223
- 'PROJECT'

helm-charts/doris-operator/Chart.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
apiVersion: v1
1919
name: doris-operator
20-
description: Doris-operator for doris creates, configures and manages doris cluster running on kubernetes. Operator provide deploy and manage fe, be, cn,broker components.
20+
description: >
21+
Kubernetes operator for creating, configuring and managing Doris clusters (dcr) and Doris disaggregated clusters
22+
(ddc). It can deploy and manage all components for Doris clusters: meta service, fe, be, cn, compute group, and
23+
broker.
2124
2225
icon: https://charts.selectdb.com/images/doris.jpg
2326

helm-charts/doris-operator/crds/disaggregated.cluster.doris.com_dorisdisaggregatedclusters.yaml

Lines changed: 6150 additions & 0 deletions
Large diffs are not rendered by default.

helm-charts/doris-operator/templates/clusterrole.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,30 @@ rules:
150150
- patch
151151
- update
152152
- watch
153+
- apiGroups:
154+
- disaggregated.cluster.doris.com
155+
resources:
156+
- dorisdisaggregatedclusters
157+
verbs:
158+
- create
159+
- delete
160+
- get
161+
- list
162+
- patch
163+
- update
164+
- watch
165+
- apiGroups:
166+
- apps.foundationdb.org
167+
resources:
168+
- foundationdbclusters
169+
verbs:
170+
- create
171+
- delete
172+
- get
173+
- list
174+
- patch
175+
- update
176+
- watch
153177
- apiGroups:
154178
- doris.selectdb.com
155179
resources:
@@ -164,6 +188,14 @@ rules:
164188
- get
165189
- patch
166190
- update
191+
- apiGroups:
192+
- disaggregated.cluster.doris.com
193+
resources:
194+
- dorisdisaggregatedclusters/status
195+
verbs:
196+
- get
197+
- patch
198+
- update
167199
- apiGroups:
168200
- rbac.authorization.k8s.io
169201
resources:

helm-charts/doris-operator/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ spec:
9494
env:
9595
- name: ENABLE_WEBHOOK
9696
value: "{{ template "webhook.enable" . }}"
97+
- name: START_DISAGGREGATED_OPERATOR
98+
value: "true"
9799
- name: OPERATOR_NAMESPACE
98100
valueFrom:
99101
fieldRef:
@@ -138,4 +140,4 @@ spec:
138140
{{- if .Values.dorisOperator.nodeSelector }}
139141
nodeSelector:
140142
{{- toYaml .Values.dorisOperator.nodeSelector | nindent 8 }}
141-
{{- end }}
143+
{{- end }}

helm-charts/doris-operator/templates/mutatingWebhookConfiguration.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,24 @@ webhooks:
4040
- UPDATE
4141
resources:
4242
- dorisclusters
43-
sideEffects: None
43+
sideEffects: None
44+
- admissionReviewVersions:
45+
- v1
46+
clientConfig:
47+
service:
48+
name: {{ template "webhook.serviceName" . }}
49+
namespace: {{ template "operator.namespace" . }}
50+
path: /mutate-disaggregated-cluster-doris-com-v1-dorisdisaggregatedcluster
51+
failurePolicy: Ignore
52+
name: mdorisdisaggregatedcluster.kb.io
53+
rules:
54+
- apiGroups:
55+
- disaggregated.cluster.doris.com
56+
apiVersions:
57+
- v1
58+
operations:
59+
- CREATE
60+
- UPDATE
61+
resources:
62+
- dorisdisaggregatedclusters
63+
sideEffects: None

helm-charts/doris-operator/templates/validatingWebhookConfiguration.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,24 @@ webhooks:
4040
- UPDATE
4141
resources:
4242
- dorisclusters
43-
sideEffects: None
43+
sideEffects: None
44+
- admissionReviewVersions:
45+
- v1
46+
clientConfig:
47+
service:
48+
name: {{ template "webhook.serviceName" . }}
49+
namespace: {{ template "operator.namespace" . }}
50+
path: /validate-disaggregated-cluster-doris-com-v1-dorisdisaggregatedcluster
51+
failurePolicy: Ignore
52+
name: vdorisdisaggregatedcluster.kb.io
53+
rules:
54+
- apiGroups:
55+
- disaggregated.cluster.doris.com
56+
apiVersions:
57+
- v1
58+
operations:
59+
- CREATE
60+
- UPDATE
61+
resources:
62+
- dorisdisaggregatedclusters
63+
sideEffects: None

0 commit comments

Comments
 (0)