40395c06 by Adam Heath

Allow for the moqui pod to be a Deployment or a StatefulSet(this latter

needs further work).
1 parent 95498de6
1 apiVersion: apps/v1 1 apiVersion: apps/v1
2 kind: StatefulSet 2 kind: {{ .Values.kind }}
3 metadata: 3 metadata:
4 name: {{ include "moqui.fullname" . }} 4 name: {{ include "moqui.fullname" . }}
5 labels: 5 labels:
...@@ -8,7 +8,9 @@ spec: ...@@ -8,7 +8,9 @@ spec:
8 {{- if not .Values.autoscaling.enabled }} 8 {{- if not .Values.autoscaling.enabled }}
9 replicas: {{ .Values.replicaCount }} 9 replicas: {{ .Values.replicaCount }}
10 {{- end }} 10 {{- end }}
11 {{- if (eq "StatefulSet" .Values.kind) }}
11 serviceName: {{ include "moqui.fullname" . }} 12 serviceName: {{ include "moqui.fullname" . }}
13 {{- end }}
12 selector: 14 selector:
13 matchLabels: 15 matchLabels:
14 {{- include "moqui.selectorLabels" . | nindent 6 }} 16 {{- include "moqui.selectorLabels" . | nindent 6 }}
......
1 kind: Deployment
2
1 imagePullSecrets: {} 3 imagePullSecrets: {}
2 image: 4 image:
3 pullPolicy: null 5 pullPolicy: null
......