SeanCondon | 4346ab9 | 2022-11-30 13:33:08 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2022 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | {{- if .Values.global.atomix.store.consensus.enabled }} |
| 6 | apiVersion: consensus.atomix.io/v1beta1 |
| 7 | kind: ConsensusStore |
| 8 | metadata: |
| 9 | name: {{ template "global.atomix.store.consensus.name" . }} |
| 10 | namespace: {{ .Release.Namespace }} |
| 11 | labels: |
| 12 | name: {{ template "global.fullname" . }} |
| 13 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 14 | release: "{{ .Release.Name }}" |
| 15 | heritage: "{{ .Release.Service }}" |
| 16 | spec: |
| 17 | replicas: {{ .Values.global.atomix.store.consensus.replicas }} |
| 18 | groups: {{ .Values.global.atomix.store.consensus.partitions }} |
| 19 | {{- if .Values.global.atomix.store.consensus.image.tag }} |
| 20 | image: "{{ .Values.global.atomix.store.consensus.image.repository }}:{{ .Values.global.atomix.store.consensus.image.tag }}" |
| 21 | {{- end }} |
| 22 | {{- with .Values.global.atomix.store.consensus.image.pullPolicy }} |
| 23 | imagePullPolicy: {{ . }} |
| 24 | {{- end }} |
| 25 | {{- with .Values.global.atomix.store.consensus.image.pullSecrets }} |
| 26 | imagePullSecrets: |
| 27 | {{- toYaml . | nindent 4 }} |
| 28 | {{- end }} |
| 29 | {{- with .Values.global.atomix.store.consensus.securityContext }} |
| 30 | securityContext: |
| 31 | {{- toYaml . | nindent 4 }} |
| 32 | {{- end }} |
| 33 | {{- if .Values.global.atomix.store.consensus.log.storageClass }} |
| 34 | volumeClaimTemplate: |
| 35 | spec: |
| 36 | accessModes: |
| 37 | - ReadWriteOnce |
| 38 | storageClassName: {{ .Values.global.atomix.store.consensus.log.storageClass | quote }} |
| 39 | {{- with .Values.global.atomix.store.consensus.log.resources }} |
| 40 | resources: |
| 41 | {{- toYaml . | nindent 8 }} |
| 42 | {{- end }} |
| 43 | {{- end }} |
| 44 | config: |
| 45 | {{- toYaml .Values.global.atomix.store.consensus.config | nindent 4 }} |
| 46 | {{- end }} |