-
Notifications
You must be signed in to change notification settings - Fork 117
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
Don't replace PVCs when resources change #1705
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
1 similar comment
Does the PR have any schema changes?Looking good! No breaking changes found. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
On AWS, the default storage class does not allow volume expansion. That takes a complex installation of the CSI driver. (which i have so no issue for me personally) Even so, this would be a breaking change for anyone depending on a replace on request change (which is needed with AWS gp2). The "best" solution would be to check the underlying storageclass to see if it has volume expansion enabled. Otherwise, i think this needs to be an extra options to enable this. |
@roderik - unfortunately there isn't a way to examine the storageclass to determine if the PVC is replaceable. This mechanism allows users to do a replace by opting in (using the replacement annotation) My logic here is that destroying PVCs is inherently a bad practice as it will nearly always contain user data that is required. |
I follow that logic and it will error out if someone depends on this dangerous behavior and will not destroy anything or any data. That is a big improvement over the current behavior. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
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.
I'm ok with this change, but let's add a note to the changelog that users can retain the previous behavior by setting the replaceOnChanges
option, possibly with an example.
Does the PR have any schema changes?Looking good! No breaking changes found. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
1 similar comment
Does the PR have any schema changes?Looking good! No breaking changes found. |
PVCs often contain critical data that users don't want to lose.
Having the resources field trigger a replace can mean that users can't take advantage of volume resizing.
This allows users to resize volumes and update the field without worrying about a triggering of replacements
Related issues (optional)
fixes #1665