Skip to content

Commit

Permalink
Add metrics pdb template (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek-sumo committed Oct 29, 2020
1 parent b9c075d commit fc197e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deploy/helm/sumologic/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
{{ template "sumologic.metadata.name.metrics" . }}
{{- end -}}

{{- define "sumologic.metadata.name.metrics.pdb" -}}
{{ template "sumologic.metadata.name.metrics.statefulset" . }}-pdb
{{- end -}}

{{- define "sumologic.metadata.name.metrics.hpa" -}}
{{- template "sumologic.metadata.name.metrics" . }}
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/sumologic/templates/metrics-pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ template "sumologic.metadata.name.metrics.statefulset" . }}-pdb
name: {{ template "sumologic.metadata.name.metrics.pdb" . }}
spec:
selector:
matchLabels:
Expand Down

0 comments on commit fc197e9

Please sign in to comment.