Allow for the moqui pod to be a Deployment or a StatefulSet(this latter
needs further work).
Showing
2 changed files
with
5 additions
and
1 deletions
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 }} | ... | ... |
-
Please register or sign in to post a comment