|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +apiVersion: disaggregated.cluster.doris.com/v1 |
| 19 | +kind: DorisDisaggregatedCluster |
| 20 | +metadata: |
| 21 | + name: {{ include "doris-disaggregated.name" . }} |
| 22 | + {{- if .Values.Labels }} |
| 23 | + labels: |
| 24 | + {{- .Values.Labels | nindent 4 }} |
| 25 | + {{- end }} |
| 26 | +spec: |
| 27 | + {{- if .Values.adminUser }} |
| 28 | + adminUser: |
| 29 | + name: {{ .Values.adminUser.name }} |
| 30 | + password: {{ .Values.adminUser.password }} |
| 31 | + {{- end }} |
| 32 | + metaService: |
| 33 | + image: {{ .Values.msSpec.image.repository }}:{{ .Values.msSpec.image.tag }} |
| 34 | + {{- if .Values.msSpec.imagePullSecrets }} |
| 35 | + imagePullSecrets: |
| 36 | + {{- toYaml .Values.msSpec.imagePullSecrets | nindent 6 }} |
| 37 | + {{- end }} |
| 38 | + replicas: {{ .Values.msSpec.replicas }} |
| 39 | + fdb: |
| 40 | + {{- if .Values.msSpec.fdb.address }} |
| 41 | + address: {{ .Values.msSpec.fdb.address }} |
| 42 | + {{- else }} |
| 43 | + configMapNamespaceName: |
| 44 | + name: {{ include "ms.fdb.configmap.name" . }} |
| 45 | + namespace: {{ include "ms.fdb.namespace" . }} |
| 46 | + {{- end }} |
| 47 | + configMaps: |
| 48 | + - name: {{ include "ms.configmap.name" . }} |
| 49 | + mountPath: {{ include "ms.configmap.mountpath" . }} |
| 50 | + {{- if .Values.msSpec.resources }} |
| 51 | + {{- toYaml .Values.msSpec.resources | nindent 4 }} |
| 52 | + {{- end }} |
| 53 | + {{- if .Values.msSpec.nodeSelector }} |
| 54 | + nodeSelector: |
| 55 | + {{- toYaml .Values.msSpec.nodeSelector | nindent 6 }} |
| 56 | + {{- end }} |
| 57 | + feSpec: |
| 58 | + replicas: {{ .Values.feSpec.replicas }} |
| 59 | + electionNumber: {{ include "fe.electionnumber" . }} |
| 60 | + image: {{ .Values.feSpec.image.repository }}:{{ .Values.feSpec.image.tag }} |
| 61 | + {{- if .Values.feSpec.imagePullSecrets }} |
| 62 | + imagePullSecrets: |
| 63 | + {{- toYaml .Values.feSpec.imagePullSecrets | nindent 6 }} |
| 64 | + {{- end }} |
| 65 | + configMaps: |
| 66 | + - name: {{ include "fe.configmap.name" . }} |
| 67 | + mountPath: {{ include "fe.configmap.mountpath" . }} |
| 68 | + logNotStore: {{ .Values.feSpec.logNotStore }} |
| 69 | + {{- if .Values.feSpec.resources }} |
| 70 | + {{- toYaml .Values.feSpec.resources | nindent 4 }} |
| 71 | + {{- end }} |
| 72 | + {{- if .Values.feSpec.service }} |
| 73 | + {{- toYaml .Values.feSpec.service }} |
| 74 | + {{- end }} |
| 75 | + {{- if .Values.feSpec.persistentVolumes }} |
| 76 | + persistentVolumes: |
| 77 | + {{- toYaml .Values.feSpec.persistentVolumes | nindent 4 }} |
| 78 | + {{- end }} |
| 79 | + computeGroups: |
| 80 | + {{- $originalContext := . -}} |
| 81 | + {{- range $index, $cgName := .Values.computeGroupNames }} |
| 82 | + - uniqueId: {{ $cgName }} |
| 83 | + replicas: {{ $originalContext.Values.computeSpec.replicas }} |
| 84 | + image: {{ $originalContext.Values.computeSpec.image.repository }}:{{ $originalContext.Values.computeSpec.image.tag }} |
| 85 | + {{- if $originalContext.Values.computeSpec.imagePullSecrets }} |
| 86 | + imagePullSecrets: |
| 87 | + {{- toYaml $originalContext.Values.computeSpec.imagePullSecrets | nindent 6 }} |
| 88 | + {{- end }} |
| 89 | + {{- if $originalContext.Values.computeSpec.resources }} |
| 90 | + {{- toYaml $originalContext.Values.computeSpec.resources | nindent 4 }} |
| 91 | + {{- end }} |
| 92 | + configMaps: |
| 93 | + - name: {{ include "be.configmap.name" . }} |
| 94 | + mountPath: {{ include "be.configmap.mountpath" . }} |
| 95 | + logNotStore: {{ $originalContext.Values.computeSpec.logNotStore }} |
| 96 | + {{- if $originalContext.Values.computeSpec.persistentVolumes }} |
| 97 | + persistentVolumes: |
| 98 | + {{- toYaml $originalContext.Values.computeSpec.persistentVolumes | nindent 4 }} |
| 99 | + {{- end }} |
| 100 | + {{- end }} |
0 commit comments