1+ {{- include "validation.bucketCount" . -}}
2+ apiVersion : tarantool.io/v1beta1
3+ kind : Cluster
4+ metadata :
5+ name : {{ include "chart.fullname" . }}
6+ labels : {{- include "chart.labels" . | nindent 4 }}
7+ {{- if .Values.annotations }}
8+ annotations : {{- tpl (.Values.annotations | toYaml) $ | nindent 4 }}
9+ {{- end }}
10+ spec :
11+ domain : {{ .Values.clusterDomain }}
12+ listenPort : {{ .Values.tarantool.ports.tarantool }}
13+ foreignLeader : {{ .Values.tarantool.foreignLeader }}
14+ failover :
15+ mode : {{ .Values.tarantool.failover.mode | quote }}
16+ {{- if not (eq .Values.tarantool.failover.mode "disabled") }}
17+ {{- include "validation.failover.timeout" . }}
18+ {{- include "validation.failover.etcd2.lockDelay" . }}
19+ timeout : {{ .Values.tarantool.failover.timeout | float64 }}
20+ {{- if eq .Values.tarantool.failover.mode "stateful" }}
21+ fencing : {{ .Values.tarantool.failover.fencing }}
22+ fencingPause : {{ .Values.tarantool.failover.fencingPause | float64}}
23+ fencingTimeout : {{ .Values.tarantool.failover.fencingTimeout | float64 }}
24+ {{- if eq .Values.tarantool.failover.mode "stateful" }}
25+ stateProvider : {{ .Values.tarantool.failover.stateProvider }}
26+ {{- if eq .Values.tarantool.failover.stateProvider "etcd2" }}
27+ etcd2 :
28+ endpoints : {{ .Values.tarantool.failover.etcd2.endpoints | toYaml | nindent 6 }}
29+ username : {{ .Values.tarantool.failover.etcd2.username }}
30+ prefix : {{ include "failover.etcd2.prefix" . }}
31+ lockDelay : {{ .Values.tarantool.failover.etcd2.lockDelay | float64 }}
32+ {{- if .Values.tarantool.failover.etcd2.password }}
33+ password :
34+ namespace : " {{ .Release.Namespace }}"
35+ name : {{ include "chart.resource.fullname" (dict "context" . "suffix" "etcd2") }}
36+ {{- end }}
37+ {{- end -}}
38+ {{- if eq .Values.tarantool.failover.stateProvider "stateboard" }}
39+ stateboard :
40+ uri : {{ .Values.tarantool.failover.stateboard.uri | toYaml | nindent 6 }}
41+ {{- if .Values.tarantool.failover.stateboard.password }}
42+ password :
43+ namespace : " {{ .Release.Namespace }}"
44+ name : {{ include "chart.resource.fullname" (dict "context" . "suffix" "stateboard") }}
45+ {{- end }}
46+ {{- end -}}
47+ {{- end -}}
48+ {{- end -}}
49+ {{- end -}}
0 commit comments