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

feat(helm): allow to set labels and annotations for podMonitor #471

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

pitwegner
Copy link
Contributor

This PR adds the ability to set labels and annotations to the podMonitor. Setting the label is usually necessary for the podMonitor to be picked up by the Prometheus Operator (prometheus-operator/prometheus-operator#3636 (comment)). Setting an annotation helps to defer the deployment of the custom resource if e.g. deploying with ArgoCD (https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#skip-dry-run-for-new-custom-resources-types).

@pitwegner pitwegner requested a review from a team as a code owner July 18, 2023 06:43
@pitwegner pitwegner changed the title allow to set labels and annotations for podMonitor feat(helm): allow to set labels and annotations for podMonitor Jul 18, 2023
@apricote apricote self-assigned this Jul 18, 2023
@apricote apricote added the enhancement New feature or request label Jul 18, 2023
@apricote
Copy link
Member

E2e tests are broken for PRs from forks right now. Tested this locally and it works (as expected, e2e test does not use PodMonitor).

@apricote apricote merged commit 5dad655 into hetznercloud:main Jul 18, 2023
@apricote
Copy link
Member

Thanks a lot for the contribution @pitwegner!

apricote pushed a commit that referenced this pull request Jul 18, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.17.0](v1.16.0...v1.17.0)
(2023-07-18)


### Features

* **helm:** allow to set labels and annotations for podMonitor
([#471](#471))
([5dad655](5dad655))
* upgrade to hcloud-go v2 e4352ec
([5a066a1](5a066a1))


### Bug Fixes

* **helm-chart:** resource namespace and name
([#462](#462))
([0c4eee6](0c4eee6))
* **routes:** deleting wrong routes when other server has same private
IP
([#472](#472))
([5461038](5461038)),
closes
[#470](#470)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants