Skip to content

Conversation

@DeeAjayi
Copy link
Contributor

@DeeAjayi DeeAjayi commented Nov 5, 2025

  • Adds an option to specify prometheus selectorLabels on the global, resource and object level
  • added serviceMonitor level labels

@DeeAjayi DeeAjayi marked this pull request as ready for review November 5, 2025 17:04
@DeeAjayi DeeAjayi self-assigned this Nov 5, 2025
@github-actions
Copy link

This PR will be automatically closed as it has been stale for 4 days. Please comment if you feel this is still relevant.

@github-actions github-actions bot added the stale label Nov 10, 2025
Service Monitor Labels
*/}}
{{- define "serviceMonitors.labels"}}
{{- $mergedLabels := mergeOverwrite (include "global.labels" . | fromYaml) .Values.serviceMonitors.labels }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use a deepCopy function here. Also fromYaml shouldn't be required

Copy link
Collaborator

@dunefro dunefro left a comment

Choose a reason for hiding this comment

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

Logic of merge is not very clean. We should use deepCopy and avoid unnecessary conversions to dict and yaml

@github-actions github-actions bot removed the stale label Nov 11, 2025
@github-actions
Copy link

This PR will be automatically closed as it has been stale for 4 days. Please comment if you feel this is still relevant.

@github-actions github-actions bot added the stale label Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants