Skip to content

Commit

Permalink
fix: strategyType for redis (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 authored Jul 24, 2024
1 parent a928419 commit d12f175
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ metadata:
reloader.stakater.com/auto: \\"true\\"
spec:
replicas: 1
strategy:
type: RollingUpdate
selector:
matchLabels:
component: redis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ metadata:
reloader.stakater.com/auto: \\"true\\"
spec:
replicas: 1
strategy:
type: RollingUpdate
selector:
matchLabels:
component: redis
Expand Down
2 changes: 2 additions & 0 deletions packages/kontinuous/tests/__snapshots__/redis.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ metadata:
reloader.stakater.com/auto: \\"true\\"
spec:
replicas: 1
strategy:
type: RollingUpdate
selector:
matchLabels:
component: redis
Expand Down
4 changes: 3 additions & 1 deletion plugins/contrib/charts/redis/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ metadata:
{{- end }}
spec:
replicas: 1
strategy:
type: {{ .Values.strategyType }}
selector:
matchLabels:
component: {{ (or .Values.component .Chart.Name) | lower }}
Expand Down Expand Up @@ -96,4 +98,4 @@ spec:
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false


1 change: 1 addition & 0 deletions plugins/contrib/charts/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ volumes: []
volumeMounts: []
~forceRestart: false
annotations: {}
strategyType: RollingUpdate

0 comments on commit d12f175

Please sign in to comment.