blob: 61691c11aebd1c6299e326eec6ef59717d19b831 [file] [log] [blame]
SeanCondon4346ab92022-11-30 13:33:08 +00001# 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 }}
6apiVersion: consensus.atomix.io/v1beta1
7kind: ConsensusStore
8metadata:
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 }}"
16spec:
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 }}