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
Refactor sandbox creation function arguments #8141
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert 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 |
c6e0fb4
to
ffeb28a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8141 +/- ##
==========================================
- Coverage 49.58% 49.43% -0.16%
==========================================
Files 153 152 -1
Lines 16926 16994 +68
==========================================
+ Hits 8393 8401 +8
- Misses 7487 7550 +63
+ Partials 1046 1043 -3 |
8950fae
to
f8db4be
Compare
/retest |
- Add a dedicated list of setters for the various pod sandbox fields and use them directly on sandbox creation - Add a new method to convert a runtime spec to a sandbox and use it on restore. - Enable the revive linter and set it to a minimum amount of arguments. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
f8db4be
to
983cfd1
Compare
/retest |
1 similar comment
/retest |
@cri-o/cri-o-maintainers PTAL |
/retest |
@cri-o/cri-o-maintainers PTAL |
I'm thinking about this more, and I find myself wondering if the Maybe instead we should really move Ultimately, we want a way to translate CRI spec (and server configuration) to sandbox/container instance, as well as a way to restore each of those from a file WDYT @cri-o/cri-o-maintainers? Maybe we discuss this at next week's community meeting? |
Is the goal to have an immutable sandbox after its creation? Then a dedicated builder would help, which is probably a complete replacement for the This PR also clashes with #7859 /hold |
I mean it could be partially mutable, but I don't think we need this level of flexibility. there are definitely fields that will never change and we shouldn't expose the ability to change externally. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?