Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics PodDisruptionBudget not optional #1044

Closed
dlaidlaw opened this issue Oct 28, 2020 · 1 comment · Fixed by #1047
Closed

Metrics PodDisruptionBudget not optional #1044

dlaidlaw opened this issue Oct 28, 2020 · 1 comment · Fixed by #1047
Assignees

Comments

@dlaidlaw
Copy link

dlaidlaw commented Oct 28, 2020

The metrics PodDisruptionBudget will always be deployed, even if metrics are disabled.

The first line of the metrics-pdb.yaml file in the helm chart is {{- if .Values.fluentd.metrics.podDisruptionBudget -}}

That will always evaluate to true because that configuration is defined in the values.yaml and therefore cannot be removed. It would be better to use {{- if and (eq .Values.sumologic.metrics.enabled true) (eq .Values.fluentd.metrics.enabled true) }} because that is the same condition used to conditionally create the metrics StatefulSet. See line 1 of the metrics-statefulset.yaml file.

@pmalek-sumo
Copy link
Contributor

Thanks @dlaidlaw for bringing this up. It should be fixed with #1047

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants