Sean Condon | 59a0a98 | 2023-05-18 18:13:15 +0100 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2022-present Intel Corporation |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | |
| 6 | apiVersion: raft.atomix.io/v1beta3 |
| 7 | kind: RaftCluster |
| 8 | metadata: |
| 9 | name: {{ template "global.atomix.consensus.cluster.name" . }} |
| 10 | namespace: {{ .Release.Namespace }} |
| 11 | labels: |
| 12 | name: {{ template "global.atomix.consensus.cluster.name" . }} |
| 13 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 14 | release: "{{ .Release.Name }}" |
| 15 | heritage: "{{ .Release.Service }}" |
| 16 | spec: |
| 17 | replicas: {{ .Values.atomix.store.consensus.replicas }} |
| 18 | {{- if .Values.atomix.store.consensus.image.tag }} |
| 19 | image: "{{ .Values.atomix.store.consensus.image.repository }}:{{ .Values.atomix.store.consensus.image.tag }}" |
| 20 | {{- end }} |
| 21 | {{- with .Values.atomix.store.consensus.image.pullPolicy }} |
| 22 | imagePullPolicy: {{ . }} |
| 23 | {{- end }} |
| 24 | {{- with .Values.atomix.store.consensus.image.pullSecrets }} |
| 25 | imagePullSecrets: |
| 26 | {{- toYaml . | nindent 4 }} |
| 27 | {{- end }} |
| 28 | {{- with .Values.atomix.store.consensus.securityContext }} |
| 29 | securityContext: |
| 30 | {{- toYaml . | nindent 4 }} |
| 31 | {{- end }} |
| 32 | persistence: {{- .Values.atomix.store.consensus.persistence | toYaml | nindent 4 }} |
| 33 | logging: |
| 34 | encoding: {{ .Values.atomix.store.consensus.logging.encoding }} |
| 35 | rootLevel: {{ .Values.atomix.store.consensus.logging.level }} |
| 36 | {{- if .Values.atomix.store.consensus.logging.loggers }} |
| 37 | loggers: |
| 38 | {{- range $key, $value := .Values.atomix.store.consensus.logging.loggers }} |
| 39 | - name: {{ $key }} |
| 40 | level: {{ $value }} |
| 41 | {{- end }} |
| 42 | {{- end }} |