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

[kube-prometheus-stack] Allow to directly config prometheus.spec and alertmanager.spec #3920

Merged
merged 3 commits into from Oct 20, 2023

Conversation

jkroepke
Copy link
Member

… alertmanager.spec

What this PR does / why we need it

This is useful, if complex templating is required or properties are not exposed by the chart yet.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • 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])

… alertmanager.spec

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
@GMartinez-Sisti
Copy link
Member

@jkroepke WDYT of adding a couple of values from these new keys to https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/ci/03-non-defaults-values.yaml? This way we can ensure they keep working as expected.

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
@jkroepke
Copy link
Member Author

@GMartinez-Sisti tests added

@GMartinez-Sisti
Copy link
Member

Did you mean Allow to directly instead of Allow to directory 👼 ?

@jkroepke jkroepke changed the title [kube-prometheus-stack] Allow to directory config prometheus.spec and… [kube-prometheus-stack] Allow to directly config prometheus.spec and alertmanager.spec Oct 20, 2023
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>
@jkroepke
Copy link
Member Author

Did you mean Allow to directly instead of Allow to directory 👼 ?

GoLand spell correction, yeah. Thanks!

@jkroepke
Copy link
Member Author

@jkroepke WDYT of adding a couple of values from these new keys to main/charts/kube-prometheus-stack/ci/03-non-defaults-values.yaml? This way we can ensure they keep working as expected.

I really like this way to testing and we should think about the make it as requirement ...

@GMartinez-Sisti
Copy link
Member

@jkroepke WDYT of adding a couple of values from these new keys to main/charts/kube-prometheus-stack/ci/03-non-defaults-values.yaml? This way we can ensure they keep working as expected.

I really like this way to testing and we should think about the make it as requirement ...

I agree we should use it more, the only downside is that it can get hard to troubleshoot when something fails or increase the duration of the tests if there are a lot of test files.

Another approach that I like a lot is helm-unittest, but they only test the template output and don't check server side if it's actually a valid config. It would be a nice complement to chart-tester (ct).

@GMartinez-Sisti GMartinez-Sisti merged commit 0119a7d into prometheus-community:main Oct 20, 2023
4 checks passed
@jkroepke
Copy link
Member Author

I agree we should use it more, the only downside is that it can get hard to troubleshoot

Internally, we run helm install command with --debug which solves the throubleshoot issues

nrdufour added a commit to nrdufour/home-ops that referenced this pull request Oct 21, 2023
…166)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [kube-prometheus-stack](https://github.com/prometheus-operator/kube-prometheus) ([source](https://github.com/prometheus-community/helm-charts)) | minor | `51.9.4` -> `51.10.0` |

---

### Release Notes

<details>
<summary>prometheus-community/helm-charts (kube-prometheus-stack)</summary>

### [`v51.10.0`](https://github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-51.10.0)

[Compare Source](prometheus-community/helm-charts@kube-prometheus-stack-51.9.4...kube-prometheus-stack-51.10.0)

kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator.

#### What's Changed

-   \[kube-prometheus-stack] Allow to directly config prometheus.spec and  alertmanager.spec by [@&#8203;jkroepke](https://github.com/jkroepke) in prometheus-community/helm-charts#3920

**Full Changelog**: prometheus-community/helm-charts@prometheus-nginx-exporter-0.2.0...kube-prometheus-stack-51.10.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yOC4wIiwidXBkYXRlZEluVmVyIjoiMzcuMjguMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://git.home/nrdufour/home-ops/pulls/166
Co-authored-by: Renovate <renovate@ptinem.io>
Co-committed-by: Renovate <renovate@ptinem.io>
sachasmart pushed a commit to sachasmart/helm-charts that referenced this pull request Dec 14, 2023
…alertmanager.spec (prometheus-community#3920)

* [kube-prometheus-stack] Allow to directory config prometheus.spec and alertmanager.spec

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>

* Add tests

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>

* Update charts/kube-prometheus-stack/values.yaml

Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>

---------

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: Sacha <sacha.smart@gmail.com>
Matiasmct pushed a commit to giffgaff/prometheus-charts that referenced this pull request Mar 20, 2024
…alertmanager.spec (prometheus-community#3920)

* [kube-prometheus-stack] Allow to directory config prometheus.spec and alertmanager.spec

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>

* Add tests

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>

* Update charts/kube-prometheus-stack/values.yaml

Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>

---------

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
@jkroepke jkroepke deleted the additionalConfig branch April 14, 2024 15:24
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.

None yet

2 participants