-
Notifications
You must be signed in to change notification settings - Fork 882
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 persistentVolumeClaimRetentionPolicy variable to values.yaml #965
Add persistentVolumeClaimRetentionPolicy variable to values.yaml #965
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.
Thanks for being so thorough with the tests here! Could you also add an entry in values.schema.json for the new parameter?
values.yaml
Outdated
# persistentVolumeClaimRetentionPolicy: | ||
# whenDeleted: Retain | ||
# whenScaled: Retain | ||
persistentVolumeClaimRetentionPolicy: null |
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.
It looks like this setting affects all PVCs on the statefulset, which would affect audit PVCs as well. I wonder if we should we move it up one level, i.e. server.persistentVolumeClaimRetentionPolicy
?
I also think we could just default this to {}
:
persistentVolumeClaimRetentionPolicy: null | |
persistentVolumeClaimRetentionPolicy: {} |
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.
Hello @tvoran ! Thanks for your feedback.
I've addressed all the changes requested 😄:
- Change default from
null
to empty object{}
. - Move key from
server.dataStorage.persistentVolumeClaimRetentionPolicy
toserver.persistentVolumeClaimRetentionPolicy
- Updated tests to match changes.
- Add new variable into the
values.schema.json
(sorry for that, I missed it when I raised this PR!)
Thanks!
98987a4
to
c782cbb
Compare
This variable is used to set the persistentVolumeClaimRetentionPolicy value in the server-statefulset.yaml template, which is used to configure the retention policy for the PVCs used by the server statefulset.
c782cbb
to
9fe21c6
Compare
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.
Thanks, this looks great!
Add new variable on the Helm chart to define the PVC retention policy for the StatefulSet, as requested in #3101
Changes proposed in this PR:
persistentVolumeClaimRetentionPolicy
to control the PVC retention policy when the statefulset is deleted or the number of replicas is decreased.How I've tested this PR:
closes #964