charts icon indicating copy to clipboard operation
charts copied to clipboard

Allow to annotate the PodMonitor resource

Open dannyyy opened this issue 1 year ago • 0 comments

Currently, the Helm chart only allows adding additional labels with podMonitorAdditionalLabels. Could you extend the Helm chart to also add additional annotations (e.g. podMonitorAdditionalAnnotations?

I'm using VictoriaMetrics which creates a VMPodScrape resource from any PodMonitor (same for ServiceMonitor). In conjunction with ArgoCD, this causes an issue because the actual and target state deviates, since the VMPodScrape is created and maintained by the VictoriaMetrics operator.

Therefore, I need to annotate the PodMonitor with argocd.argoproj.io/compare-options: IgnoreExtraneous. Otherwise I'm running constantly in synchronization issues.

dannyyy avatar Jan 04 '25 14:01 dannyyy