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

Add support for persistentVolumeClaimRetentionPolicy field #3354

Merged

Conversation

davidhaja
Copy link
Contributor

Description:
Add support for persistentVolumeClaimRetentionPolicy field in opentelemetrycollector CR.
The persistentVolumeClaimRetentionPolicy works only in statefulset mode.
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates.

Link to tracking Issue(s):
3305

Testing:
tests/e2e/statefulset-features e2e test updated with the new field.
Unit tests created for the conversion between api versions, statefulset mode check and for the correct propagation of the persistentVolumeClaimRetentionPolicy field.

Documentation:
docs/api.md updated with the new field.

@davidhaja davidhaja requested a review from a team as a code owner October 14, 2024 07:45
Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I'd get rid of the changes to v1alpha and the PersistentVolumeClaimRetentionPolicy function. Less code is better.

internal/manifests/collector/volumeclaimretentionpolicy.go Outdated Show resolved Hide resolved
apis/v1alpha1/convert.go Outdated Show resolved Hide resolved
@swiatekm swiatekm self-requested a review October 15, 2024 10:15
apis/v1beta1/common.go Outdated Show resolved Hide resolved
Co-authored-by: Jacob Aronoff <jaronoff97@users.noreply.github.com>
@swiatekm
Copy link
Contributor

@davidhaja you need to regenerate documentation, your typo fix to the comment isn't reflected there.

@swiatekm
Copy link
Contributor

I'm going to merge this after #3351, to avoid having to regenerate the changelog for 0.111.0.

@swiatekm swiatekm merged commit 31ee21e into open-telemetry:main Oct 21, 2024
36 checks passed
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.

Add support for persistentVolumeClaimRetentionPolicy field in statefulset mode
4 participants