-
Notifications
You must be signed in to change notification settings - Fork 270
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
Deprecate DataVolume garbage collection #3552
Conversation
86f4253
to
72989a1
Compare
After several releases with GC disabled by default, we decided to deprecate it, as unfortunately it violates fundamental principle of Kubernetes. CR should not be auto-deleted when it completes its role (Job with TTLSecondsAfterFinished is an exception), and once CR was created we can assume it is there until explicitly deleted. In addition, CR should keep idempotency, so the same CR manifest can be applied multiple times, as long as it is a valid update (e.g. DataVolume validation webhook does not allow updating the spec). Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
72989a1
to
e49c956
Compare
/test pull-cdi-goveralls |
The forklfit disables the GC [1]. |
@ksimon1 @0xFelix does the deprecation require any fix in kubevirt-tekton-tasks? I can't forget this tiny adjustment PR. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awels The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@arnongilboa kubevirt-tekton-tasks do not assume that garbage collection is active by default AFAIK. I created an issue to keep track of it. |
What this PR does / why we need it:
After several releases with
DataVolume
garbage collection disabled by default, we decided to deprecate it, as unfortunately it violates fundamental principle of Kubernetes. CR should not be auto-deleted when it completes its role (Job
withTTLSecondsAfterFinished
is an exception), and once CR was created we can assume it is there until explicitly deleted. In addition, CR should keep idempotency, so the same CR manifest can be applied multiple times, as long as it is a valid update (e.g.DataVolume
validation webhook does not allow updating the spec).Which issue(s) this PR fixes:
jira-ticket: https://issues.redhat.com/browse/CNV-30806
Special notes for your reviewer:
Release note: