40395c06 by Adam Heath

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

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