-
Notifications
You must be signed in to change notification settings - Fork 1.4k
✨ Optimize size of runtime hook requests #12462
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
✨ Optimize size of runtime hook requests #12462
Conversation
/assign @fabriziopandini |
/test pull-cluster-api-e2e-main |
45cddad
to
e1e59cb
Compare
/test pull-cluster-api-e2e-main |
@@ -1185,6 +1187,22 @@ func TestComputeControlPlaneVersion(t *testing.T) { | |||
ObjectMeta: metav1.ObjectMeta{ | |||
Name: "test-cluster", | |||
Namespace: "test-ns", | |||
// Add managedFields and annotations that should be cleaned up before the Cluster is sent to the RuntimeExtension. |
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.
Are we confident that a runtime extension wouldn't be relying on the managed fields at all?
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 think it shouldn't depend on the information when which field was written by whom.
As this is all still alpha, I think it's a good time to drop this info.
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 can't actually know that nobody is using this, but in my opinion it's very very unlikely.
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.
Ack, happy to take the risk and see who complains, one of those things of, if it's there, someone is probably using it, but lets see
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.
ManagedFields are really hard to consume :)
/test pull-cluster-api-e2e-main |
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.
/lgtm
LGTM label has been added. Git tree hash: 1762205563bea29118ce5be2f947ab626508a0d2
|
/override pull-cluster-api-e2e-main |
@sbueringer: Overrode contexts on behalf of sbueringer: pull-cluster-api-e2e-main In response to this:
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. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed 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 |
What this PR does / why we need it:
Currently we're sending too much information in our runtime hook requests.
This PR optimizes the runtime hook request sizes by dropping:
Kudos to @fabriziopandini for the idea!
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #