Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Enable statefulset #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions nexus-repository-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apiVersion: apps/v1
{{- if .Values.statefulset.enabled }}
kind: StatefulSet
{{- else }}
kind: Deployment
{{- end }}
metadata:
name: {{ template "nexus.fullname" . }}
labels:
Expand All @@ -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 }}
Expand Down
1 change: 0 additions & 1 deletion nexus-repository-manager/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
statefulset:
# This is not supported
enabled: false
deploymentStrategy: Recreate
image:
Expand Down