diff --git a/nexus-repository-manager/templates/deployment.yaml b/nexus-repository-manager/templates/deployment.yaml index d3eea71..c76b0a1 100644 --- a/nexus-repository-manager/templates/deployment.yaml +++ b/nexus-repository-manager/templates/deployment.yaml @@ -1,5 +1,9 @@ apiVersion: apps/v1 +{{- if .Values.statefulset.enabled }} +kind: StatefulSet +{{- else }} kind: Deployment +{{- end }} metadata: name: {{ template "nexus.fullname" . }} labels: @@ -15,8 +19,12 @@ metadata: {{- end }} spec: replicas: 1 + {{- if .Values.statefulset.enabled }} + serviceName: {{ template "nexus.fullname" . }} + {{- else }} strategy: type: {{ .Values.deploymentStrategy }} + {{- end }} selector: matchLabels: {{- include "nexus.selectorLabels" . | nindent 6 }} diff --git a/nexus-repository-manager/values.yaml b/nexus-repository-manager/values.yaml index f10a5a7..36fcdfb 100644 --- a/nexus-repository-manager/values.yaml +++ b/nexus-repository-manager/values.yaml @@ -1,6 +1,5 @@ --- statefulset: - # This is not supported enabled: false deploymentStrategy: Recreate image: