-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Add persistent volume claim retention policy #38361
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 persistent volume claim retention policy #38361
Conversation
amoghrajesh
left a comment
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.
@nirroz93 good work on the PR. Few comments:
- Can we add this also to
chart/files/pod-template-file.kubernetes-helm-yamlfor K8sExecutor? - Can we add unit tests foe this under
helm_tests? Check similar tests.
| persistence: | ||
| # Enable persistent volumes | ||
| enabled: true | ||
| # persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled\removed |
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.
nit:
| # persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled\removed | |
| # persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled/removed |
| persistence: | ||
| # Enable persistent volumes | ||
| enabled: true | ||
| # persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled\removed |
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.
| # persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled\removed | |
| # persistentVolumeClaimRetentionPolicy if statefulset is used, to determine delete when scaled/removed |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
no need to add this to |
|
@nirroz93 are you actively working on this? |
Add persistentVolumeClaimRetentionPolicy available since k8s 1.23 (alpha) and 1.27 (beta). With logs, this makes a lot of sense (with remote logging only running task log is important, and on scale down pvc should be removed)