Skip to content

Commit

Permalink
Allow setting strategy on deployments (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Elwell <matthew.elwell@flagsmith.com>
  • Loading branch information
plumdog and matthewelwell authored Dec 13, 2022
1 parent 7953ebc commit 305c1c4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.11.2
version: 0.12.0
appVersion: 2.34.0
dependencies:
- name: postgresql
Expand Down
3 changes: 3 additions & 0 deletions charts/flagsmith/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ spec:
matchLabels:
{{- include "flagsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: api
{{- with .Values.api.deploymentStrategy }}
strategy: {{- . | toYaml | nindent 4 }}
{{- end }}
{{- include "flagsmith.replicaCount" .Values.api.replicacount | nindent 2 }}
template:
metadata:
Expand Down
3 changes: 3 additions & 0 deletions charts/flagsmith/templates/deployment-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ spec:
matchLabels:
{{- include "flagsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: frontend
{{- with .Values.frontend.deploymentStrategy }}
strategy: {{- . | toYaml | nindent 4 }}
{{- end }}
{{- include "flagsmith.replicaCount" .Values.frontend.replicacount | nindent 2 }}
template:
metadata:
Expand Down
3 changes: 3 additions & 0 deletions charts/flagsmith/templates/deployment-pgbouncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ spec:
matchLabels:
{{- include "flagsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: pgbouncer
{{- with .Values.pgbouncer.deploymentStrategy }}
strategy: {{- . | toYaml | nindent 4 }}
{{- end }}
{{- include "flagsmith.replicaCount" .Values.pgbouncer.replicacount | nindent 2 }}
template:
metadata:
Expand Down
3 changes: 3 additions & 0 deletions charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ api:
# deployment's pods.
separateApiAndFrontend: true
replicacount: 1
deploymentStrategy: null
podAnnotations: {}
resources: {}
# limits:
Expand Down Expand Up @@ -79,6 +80,7 @@ frontend:
imagePullPolicy: IfNotPresent
imagePullSecrets: []
replicacount: 1
deploymentStrategy: null
resources: {}
# limits:
# cpu: 500m
Expand Down Expand Up @@ -143,6 +145,7 @@ pgbouncer:
imagePullPolicy: IfNotPresent
imagePullSecrets: []
replicaCount: 1
deploymentStrategy: null
podAnnotations: {}
resources: {}
podLabels: {}
Expand Down

0 comments on commit 305c1c4

Please sign in to comment.