-
Notifications
You must be signed in to change notification settings - Fork 459
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
Add support for persistentVolumeClaimRetentionPolicy field #3354
Conversation
There was a problem hiding this 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.
…difficulty and low added value
…y-operator into 3305-persistentVolumeClaimRetentionPolicy
Co-authored-by: Jacob Aronoff <jaronoff97@users.noreply.github.com>
@davidhaja you need to regenerate documentation, your typo fix to the comment isn't reflected there. |
I'm going to merge this after #3351, to avoid having to regenerate the changelog for 0.111.0. |
Description:
Add support for
persistentVolumeClaimRetentionPolicy
field in opentelemetrycollector CR.The
persistentVolumeClaimRetentionPolicy
works only instatefulset
mode.persistentVolumeClaimRetentionPolicy
describes the lifecycle of persistent volume claims created fromvolumeClaimTemplates
.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.