Ray Milkey | cd9f8d1 | 2022-08-09 12:27:09 -0700 | [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.store.consensus.enabled }} |
| 6 | apiVersion: atomix.io/v2beta1 |
| 7 | kind: Store |
| 8 | metadata: |
| 9 | name: {{ template "fabric-adapter.store.consensus.name" . }} |
| 10 | namespace: {{ .Release.Namespace }} |
| 11 | spec: |
| 12 | protocol: |
| 13 | apiVersion: storage.atomix.io/v2beta2 |
| 14 | kind: MultiRaftProtocol |
| 15 | spec: |
| 16 | replicas: {{ .Values.store.consensus.replicas }} |
| 17 | groups: {{ .Values.store.consensus.partitions }} |
| 18 | {{- with .Values.store.consensus.raft }} |
| 19 | raft: |
| 20 | {{- toYaml . | nindent 8 }} |
| 21 | {{- end }} |
| 22 | image: {{ template "fabric-adapter.store.consensus.imagename" . }} |
| 23 | imagePullPolicy: {{ .Values.store.consensus.image.pullPolicy }} |
| 24 | {{- with .Values.store.consensus.image.pullSecrets }} |
| 25 | imagePullSecrets: |
| 26 | {{- toYaml . | nindent 8 }} |
| 27 | {{- end }} |
| 28 | {{- with .Values.store.consensus.securityContext }} |
| 29 | securityContext: |
| 30 | {{- toYaml . | nindent 8 }} |
| 31 | {{- end }} |
| 32 | {{- if .Values.store.consensus.persistence.storageClass }} |
| 33 | volumeClaimTemplate: |
| 34 | spec: |
| 35 | accessModes: |
| 36 | - ReadWriteOnce |
| 37 | storageClassName: {{ .Values.store.consensus.persistence.storageClass | quote }} |
| 38 | resources: |
| 39 | requests: |
| 40 | storage: {{ .Values.store.consensus.persistence.storageSize }} |
| 41 | {{- end }} |
| 42 | {{- end }} |