Skip to content

Commit

Permalink
Merge pull request #74 from empathyco/fix/motive-service
Browse files Browse the repository at this point in the history
fix: strategy does not allow to set Recreate
  • Loading branch information
jmsantorum authored Sep 25, 2024
2 parents 2d0cfe1 + fc36506 commit 0d48a9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/motive-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A Helm chart for Kubernetes

type: application

version: 2.2.0
version: 2.2.1

appVersion: "1.0.0"
2 changes: 1 addition & 1 deletion charts/motive-service/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# motive-service

![Version: 2.2.0](https://img.shields.io/badge/Version-2.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
![Version: 2.2.1](https://img.shields.io/badge/Version-2.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
7 changes: 6 additions & 1 deletion charts/motive-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ spec:
{{- include "motive-service.serviceSelectorLabels" . | nindent 6 }}
{{- with .Values.service.updateStrategy }}
strategy:
{{- toYaml . | nindent 4 }}
type: {{ .type }}
{{- if .type | eq "RollingUpdate" }}
rollingUpdate:
maxSurge: {{ .rollingUpdate.maxSurge | default "25%" }}
maxUnavailable: {{ .rollingUpdate.maxUnavailable | default "25%" }}
{{- end }}
{{- end }}
template:
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/motive-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ service:

# -- Specifies the strategy used to replace old Pods by new ones
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate

# -- Configurable annotations applied to all pods
podAnnotations: {}
Expand Down

0 comments on commit 0d48a9c

Please sign in to comment.