diff --git a/charts/athens-proxy/Chart.yaml b/charts/athens-proxy/Chart.yaml index f15b7ddb..226175b3 100644 --- a/charts/athens-proxy/Chart.yaml +++ b/charts/athens-proxy/Chart.yaml @@ -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 diff --git a/charts/athens-proxy/templates/deployment.yaml b/charts/athens-proxy/templates/deployment.yaml index f191ab8d..f77f4d08 100644 --- a/charts/athens-proxy/templates/deployment.yaml +++ b/charts/athens-proxy/templates/deployment.yaml @@ -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" . }} diff --git a/charts/athens-proxy/values.yaml b/charts/athens-proxy/values.yaml index 20808790..83704a29 100644 --- a/charts/athens-proxy/values.yaml +++ b/charts/athens-proxy/values.yaml @@ -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