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 changing the default revisionHistoryLimit #3664

Conversation

barney71
Copy link
Contributor

@barney71 barney71 commented Aug 3, 2023

What this PR does / why we need it

I want to clean up old replica sets so that these don't appear in metrics, OPA violations, ArgoCD UI and so on.
Therefore I want to overwrite the Kubernetes default revision history limit.

See Kubernetes Clean up Policy.

Which issue this PR 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])

Signed-off-by: Thomas Krawczyk <thomas.krawczyk@diva-e.com>
@barney71 barney71 force-pushed the feat/add-allow-changing-revisionHistoryLimit branch from 870ce21 to 76b9c5d Compare August 3, 2023 12:21
@Xtigyro
Copy link
Member

Xtigyro commented Aug 4, 2023

@barney71 Thank you!

@Xtigyro Xtigyro merged commit aba4760 into prometheus-community:main Aug 4, 2023
4 checks passed
nrdufour added a commit to nrdufour/home-ops that referenced this pull request Aug 5, 2023
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 | `48.2.3` -> `48.3.1` |

---

### Release Notes

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

### [`v48.3.1`](https://github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-48.3.1)

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

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] Fix indentation multiple imagePullSecrets by [@&#8203;DanielBronk](https://github.com/DanielBronk) in prometheus-community/helm-charts#3666

#### New Contributors

-   [@&#8203;DanielBronk](https://github.com/DanielBronk) made their first contribution in prometheus-community/helm-charts#3666

**Full Changelog**: prometheus-community/helm-charts@prometheus-operator-crds-5.1.0...kube-prometheus-stack-48.3.1

### [`v48.3.0`](https://github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-48.3.0)

[Compare Source](prometheus-community/helm-charts@kube-prometheus-stack-48.2.3...kube-prometheus-stack-48.3.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 changing the default revisionHistoryLimit by [@&#8203;barney71](https://github.com/barney71) in prometheus-community/helm-charts#3664

#### New Contributors

-   [@&#8203;barney71](https://github.com/barney71) made their first contribution in prometheus-community/helm-charts#3664

**Full Changelog**: prometheus-community/helm-charts@prometheus-adapter-4.3.1...kube-prometheus-stack-48.3.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:eyJjcmVhdGVkSW5WZXIiOiIzNi4yMy4yIiwidXBkYXRlZEluVmVyIjoiMzYuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://git.home/nrdufour/home-ops/pulls/33
Co-authored-by: Renovate <renovate@ptinem.io>
Co-committed-by: Renovate <renovate@ptinem.io>
@reefland
Copy link

reefland commented Aug 9, 2023

@barney71 - this worked great for the operator!

How would changes to revisionHistoryLimit be applied to Grafana, Kube State Metrics, Node Exporter within the Kube Prometheus Stack values.yaml file?

I tried this, was ignored:

...
        grafana:
          enabled: true
          revisionHistoryLimit: 3
...

@barney71
Copy link
Contributor Author

barney71 commented Aug 9, 2023

Hi @reefland,
a colleague of mine created some subsequent pull requests to define revisionHistoryLimit in dependent charts. Once they're merged, I will create another pull request to modify https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml to enable it. I hope this answers your question.

alertmanger
#3674 (merged)

kube-state-metrics
#3675 (open)

prometheus
#3676 (merged)

prometheus-node-exporter
#3677 (merged)

prometheus-operator-admission-webhook
#3678 (merged)

grafana - already support setting deployment's revisionHistoryLimit
https://github.com/grafana/helm-charts/blob/main/charts/grafana/templates/deployment.yaml#L20

Matiasmct pushed a commit to giffgaff/prometheus-charts that referenced this pull request Aug 25, 2023
…munity#3664)

Signed-off-by: Thomas Krawczyk <thomas.krawczyk@diva-e.com>
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

3 participants