charts: allow to set deployment update strategy (#1597)

This commit is contained in:
Bruno Clermont
2020-04-02 20:28:48 +08:00
committed by GitHub
parent af0e699d3a
commit cb286fb266
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: athens-proxy
version: 0.4.9
version: 0.4.10
appVersion: 0.8.1
description: The proxy server for Go modules
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
@@ -9,6 +9,13 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: {{ .Values.replicaCount }}
{{- if .Values.strategy }}
strategy:
{{ toYaml .Values.strategy | indent 4 }}
{{- if eq .Values.strategy.type "Recreate" }}
rollingUpdate: null
{{- end }}
{{- end }}
selector:
matchLabels:
app: {{ template "fullname" . }}
+5
View File
@@ -17,6 +17,10 @@ livenessProbe:
successThreshold: 1
timeoutSeconds: 1
## Server Deployment Strategy type
# strategy:
# type: Recreate
service:
## Additional annotations to apply to the service
annotations: {}
@@ -46,6 +50,7 @@ storage:
storageRoot: "/var/lib/athens"
persistence:
## Note if you use disk.persistence.enabled, replicaCount should be set to 1 unless your access mode is ReadWriteMany
## and strategy type must be Recreate
enabled: false
accessMode: ReadWriteOnce
size: 4Gi