Skip to content

Conversation

@Dashing-Nelson
Copy link

This pull request introduces support for adding custom labels to PodMonitor resources in the cluster Helm chart. This enhancement allows users to specify additional labels, which can be useful for integration with monitoring stacks or for team-based resource identification.

PodMonitor labels support:

  • Added a labels field to the podMonitor configuration in charts/cluster/values.yaml, enabling users to specify extra labels for PodMonitor resources.
  • Updated the Helm template in charts/cluster/templates/cluster.yaml to include podMonitorAdditionalLabels when custom labels are provided, ensuring these labels are applied to the generated PodMonitor resource.
  • Modified the schema in charts/cluster/values.schema.json to define the new labels field as an object, validating user input for this configuration option.

closes: #647

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. chart( cluster ) Related to the cluster chart labels Nov 13, 2025
{{- end }}
{{- if not (empty .Values.cluster.monitoring.podMonitor.labels) }}
{{- with .Values.cluster.monitoring.podMonitor.labels }}
podMonitorAdditionalLabels:

Choose a reason for hiding this comment

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

This key doesn't exist in the Cluster spec for monitoring. I believe the only way to solve this issue is to externalize the PodMonitor from the Cluster resource.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart( cluster ) Related to the cluster chart size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support configurable PodMonitor labels

2 participants