2024-07-04 22:37:30 +02:00
|
|
|
{{- if eq .Values.workloadType "StatefulSet" -}}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: StatefulSet
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "wg-portal.fullname" . }}
|
|
|
|
|
labels: {{- include "wg-portal.labels" . | nindent 4 }}
|
|
|
|
|
spec:
|
|
|
|
|
{{- with .Values.revisionHistoryLimit }}
|
|
|
|
|
revisionHistoryLimit: {{ . }}
|
|
|
|
|
{{- end }}
|
2026-02-19 23:19:00 +01:00
|
|
|
{{- with .Values.replicas }}
|
|
|
|
|
replicas: {{ . }}
|
|
|
|
|
{{- end }}
|
2024-07-04 22:37:30 +02:00
|
|
|
{{- with .Values.strategy }}
|
|
|
|
|
updateStrategy: {{- toYaml . | nindent 4 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
serviceName: {{ template "wg-portal.fullname" . }}-web
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels: {{- include "wg-portal.selectorLabels" . | nindent 6 }}
|
|
|
|
|
template: {{- include "wg-portal.podTemplate" . | nindent 4 }}
|
|
|
|
|
{{- if .Values.persistence.enabled }}
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
|
- metadata:
|
|
|
|
|
name: data
|
|
|
|
|
spec: {{- include "wg-portal.pvc" . | nindent 8 }}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|