mirror of
https://github.com/mastodon/chart
synced 2025-03-15 13:31:51 +00:00
feat(deployments): make spec.revisionHistoryLimit configurable (#121)
This commit is contained in:
parent
e5b256d45c
commit
8e5ab7c068
|
@ -22,7 +22,9 @@ spec:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
replicas: {{ .replicas }}
|
replicas: {{ .replicas }}
|
||||||
revisionHistoryLimit: 2
|
{{- if (ne (toString $context.Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
||||||
|
revisionHistoryLimit: {{ $context.Values.mastodon.revisionHistoryLimit }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" $context | nindent 6 }}
|
{{- include "mastodon.selectorLabels" $context | nindent 6 }}
|
||||||
|
|
|
@ -10,7 +10,9 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.mastodon.streaming.replicas }}
|
replicas: {{ .Values.mastodon.streaming.replicas }}
|
||||||
revisionHistoryLimit: 2
|
{{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
||||||
|
revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
||||||
|
|
|
@ -10,7 +10,9 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.mastodon.web.replicas }}
|
replicas: {{ .Values.mastodon.web.replicas }}
|
||||||
revisionHistoryLimit: 2
|
{{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
||||||
|
revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
||||||
|
|
|
@ -101,6 +101,11 @@ mastodon:
|
||||||
# with keys SECRET_KEY_BASE and OTP_SECRET and
|
# with keys SECRET_KEY_BASE and OTP_SECRET and
|
||||||
# VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY
|
# VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY
|
||||||
existingSecret: ""
|
existingSecret: ""
|
||||||
|
|
||||||
|
# -- The number of old revisions to keep for each Deployment in Kubernetes.
|
||||||
|
# See https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy
|
||||||
|
revisionHistoryLimit: 2
|
||||||
|
|
||||||
sidekiq:
|
sidekiq:
|
||||||
# -- Pod security context for all Sidekiq Pods, overwrites .Values.podSecurityContext
|
# -- Pod security context for all Sidekiq Pods, overwrites .Values.podSecurityContext
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user