-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Reduce CRD size. #5089
Reduce CRD size. #5089
Conversation
61ef76a
to
c698c2a
Compare
A problem of removing the description is that it breaks |
Right. |
I believe updating the pod.spec should be sufficient? |
In most cases, I think yes, but I'm not sure about Fedex NSX environment. I remember there are more than one CRDs failed during creation. Need to test to make sure. |
I agree with @reasonerjt, IMO breaking |
I think there are two ways:
Maybe we can do both. |
c698c2a
to
668ae22
Compare
@shubham-pampattiwar @reasonerjt |
Codecov Report
@@ Coverage Diff @@
## main #5089 +/- ##
==========================================
- Coverage 41.30% 41.27% -0.03%
==========================================
Files 210 211 +1
Lines 18439 18478 +39
==========================================
+ Hits 7616 7627 +11
- Misses 10253 10276 +23
- Partials 570 575 +5
Continue to review full report at Codecov.
|
eed356a
to
c2bbeea
Compare
@blackpiglet Are we not going to shorten the Restore CRD spec descriptions ? Do the current changes in the PR fix the size issue ? |
@shubham-pampattiwar |
Ok, Thank you ! VISACK ! |
1. Make the Restore hook.InitConatianer server side field pruing disable. 2. Remove restore patch in update-generate-crd-code.sh. 3. Modify related testcases. 4. Add Container fields validation in Restore Init hook. Signed-off-by: Xun Jiang <[email protected]>
c2bbeea
to
4206a7b
Compare
Signed-off-by: Xun Jiang <[email protected]>
f101269
to
4cc712a
Compare
Conflict by crd.go file. If the change is accepted, I will rebase the branch and create a new PR for merge. |
Close this one, due to |
The background of this change is Velero has some use cases that k8s cluster operated after proxy or air-gapped environment, so the network speed is limited. This makes Velero installation often failed with CRD creation timeout, and the biggest CRD of Velero is
Restore
, because the InitContainer hook containsPodSpec
. Restore CRD size is nearly 2MB.This is a proposal to reduce CRD size. Reduction is achieved by two modifications:
Not sure whether users and developers of Velero relied on the things changed. If anything is not acceptable, I'm open to change.
Signed-off-by: Xun Jiang [email protected]
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #4916
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.