mirror of https://github.com/grafana/loki
add optional PodDisruptionBudget to helm chart (#515)
* add optional PodDisruptionBudget to helm chart * address comments * add back new line - no change to helpers template * fix silly typo in loki-stack versionpull/569/head
parent
3d7119d8a7
commit
e6503a5c4b
@ -0,0 +1,15 @@ |
||||
{{- if .Values.podDisruptionBudget -}} |
||||
apiVersion: policy/v1beta1 |
||||
kind: PodDisruptionBudget |
||||
metadata: |
||||
name: {{ template "loki.fullname" . }} |
||||
app: {{ template "loki.name" . }} |
||||
heritage: {{ .Release.Service }} |
||||
release: {{ .Release.Name }} |
||||
chart: {{ template "loki.chart" . }} |
||||
spec: |
||||
selector: |
||||
matchLabels: |
||||
app: {{ template "loki.name" . }} |
||||
{{ toYaml .Values.podDisruptionBudget | indent 2 }} |
||||
{{- end -}} |
Loading…
Reference in new issue