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

[prometheus-blackbox-exporter] add commonLabels to pod #4855

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

es1o
Copy link

@es1o es1o commented Sep 13, 2024

What this PR does / why we need it

Add commonLabels to Pod in Deployment.

Which issue this PR fixes

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Signed-off-by: Grzegorz Eliszewski <[email protected]>
@@ -21,6 +21,9 @@ spec:
metadata:
labels:
{{- include "prometheus-blackbox-exporter.selectorLabels" . | nindent 8 }}
{{- if .Values.commonLabels }}
{{ toYaml .Values.commonLabels | indent 8 }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monotek It is necessary because prometheus-blackbox-exporter.labels are not used here, only prometheus-blackbox-exporter.selectorLabels that doesn't have .Values.commonLabels.

@es1o es1o requested a review from monotek September 30, 2024 10:42
Signed-off-by: Grzegorz Eliszewski <[email protected]>
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 this pull request may close these issues.

2 participants