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

[alertmanager] Add support for PVC retention policy in statefulset #3760

Conversation

peterabarr
Copy link

@peterabarr peterabarr commented Sep 5, 2023

What this PR does / why we need it

Kubernetes 1.27.0 enabled statefulset's persistent volume claim retention policy (beta) by means of which a PVC can either be retained or deleted on deleting and scaling down the statefulset, respectively.

To enable the auto delete feature in the chart, this PR adds fields Values.persistentVolumeClaimRetentionPolicy.whenDeleted and Values.persistentVolumeClaimRetentionPolicy.whenScaled. Default value is retain (PVCs retained).

The values schema file has been updated with recently added fields.

Which issue this PR fixes

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

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch 3 times, most recently from f584f11 to 5fb7272 Compare September 28, 2023 10:00
@peterabarr peterabarr requested a review from monotek September 28, 2023 13:47
charts/alertmanager/templates/statefulset.yaml Outdated Show resolved Hide resolved
charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch from 405bc49 to b62bc96 Compare September 28, 2023 14:33
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch from b62bc96 to 34d06cf Compare September 28, 2023 15:02
@peterabarr peterabarr requested a review from monotek September 28, 2023 15:20
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch from 34d06cf to 77f80e2 Compare September 28, 2023 15:20
charts/alertmanager/values.yaml Outdated Show resolved Hide resolved
charts/alertmanager/templates/statefulset.yaml Outdated Show resolved Hide resolved
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch 2 times, most recently from 4614e50 to a131c66 Compare September 29, 2023 10:03
charts/alertmanager/Chart.yaml Outdated Show resolved Hide resolved
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch 3 times, most recently from 2374ff8 to c64a568 Compare October 2, 2023 08:22
@peterabarr peterabarr requested a review from monotek October 2, 2023 08:23
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch 2 times, most recently from 25056fd to 0eb8690 Compare October 2, 2023 08:23
monotek
monotek previously approved these changes Oct 2, 2023
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch from 00ead7b to 74f47fa Compare October 2, 2023 10:00
@peterabarr peterabarr requested a review from a team as a code owner October 2, 2023 10:00
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch from 74f47fa to 6885f43 Compare October 2, 2023 10:01
@peterabarr peterabarr requested a review from monotek October 2, 2023 10:13
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch 2 times, most recently from 762c665 to 6e4287f Compare October 2, 2023 10:38
@peterabarr
Copy link
Author

@monotek I had to make a change to fix the lint check failing & found a problem when helm templating in the statefulset.yaml file which I corrected if you could re-review, thanks

@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch 10 times, most recently from 79f6231 to 0e6661d Compare October 9, 2023 08:16
@VocalPalsy
Copy link

Thanks @peterabarr @monotek any updates on this we are waiting on this for our environment?

…to the deployment (prometheus-community#3649)

* enable passing rabbitmq conection parameters

Signed-off-by: Daniel Gotlieb <[email protected]>

* Update chart version

Signed-off-by: dgotlieb <[email protected]>

* Update charts/prometheus-rabbitmq-exporter/Chart.yaml

Signed-off-by: André Bauer <[email protected]>

---------

Signed-off-by: Daniel Gotlieb <[email protected]>
Signed-off-by: dgotlieb <[email protected]>
Signed-off-by: André Bauer <[email protected]>
Co-authored-by: Daniel Gotlieb <[email protected]>
Co-authored-by: MH <[email protected]>
Co-authored-by: André Bauer <[email protected]>

[alertmanager] Add if block to ingressClassName to use default ingressClass (prometheus-community#3824)

* add-if-block-to-ingressClassName

Signed-off-by: jmnote <[email protected]>

* Chart Version bumped

Signed-off-by: jmnote <[email protected]>

---------

Signed-off-by: jmnote <[email protected]>
Co-authored-by: André Bauer <[email protected]>

[alertmanager] Add optional seperate ingress per replica (prometheus-community#3689)

* [alertmanager] Add optional seperate ingress per replica

Signed-off-by: Knut Götz <[email protected]>

* chore(alertmanger): bump chart version

Signed-off-by: Knut Götz <[email protected]>

---------

Signed-off-by: Knut Götz <[email protected]>
Signed-off-by: André Bauer <[email protected]>
Co-authored-by: André Bauer <[email protected]>
Signed-off-by: peterabarr <[email protected]>

[alertmanager] Add support for PVC retention policy in statefulset

Fix

Fix PVC policy

Fix fmt

Signed-off-by: peterabarr <[email protected]>

Adjustments

Remove ternary

rm blank space

Signed-off-by: peterabarr <[email protected]>

Change chart version

Signed-off-by: peterabarr <[email protected]>

Json changes

Signed-off-by: peterabarr <[email protected]>

Add to templates file

Signed-off-by: peterabarr <[email protected]>

Statefulset fix

Signed-off-by: peterabarr <[email protected]>

Fixes

Signed-off-by: peterabarr <[email protected]>
@peterabarr peterabarr force-pushed the feat/alertmanager-sts-autodeletepvc branch from 0e6661d to 5d25996 Compare October 11, 2023 14:05
Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

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

please fix ci error

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

Copy link

stale bot commented Mar 17, 2024

This issue is being automatically closed due to inactivity.

@stale stale bot closed this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[alertmanager] StatefulSet PVC Retention Policy
4 participants