Skip to content

Commit

Permalink
Merge pull request #31 from devurandom/ds/strategy-recreate
Browse files Browse the repository at this point in the history
Allow setting spec.strategy.type=Recreate
  • Loading branch information
pmint93 authored Mar 3, 2022
2 parents 9ec5d71 + 173684d commit 48d2418
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: The easy, open source way for everyone in your company to ask questions
and learn from data.
name: metabase
version: 1.4.1
version: 1.4.2
appVersion: v0.41.6
maintainers:
- name: pmint93
Expand Down
4 changes: 4 additions & 0 deletions charts/metabase/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ spec:
matchLabels:
app: {{ template "metabase.name" . }}
replicas: {{ .Values.replicaCount }}
{{- with .Values.strategy }}
strategy:
{{ toYaml . | trim | indent 4 }}
{{- end }}
template:
metadata:
annotations:
Expand Down
5 changes: 5 additions & 0 deletions charts/metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ ingress:
#
# log4jProperties:

# The deployment strategy to use
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec
# strategy:
# type: "Recreate"

serviceAccount:
# Specifies whether a service account should be created
create: false
Expand Down

0 comments on commit 48d2418

Please sign in to comment.