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
OCPBUGS-13854: UPSTREAM: 117371: kubelet: Don't reference the pod manager interface directly from components #1578
OCPBUGS-13854: UPSTREAM: 117371: kubelet: Don't reference the pod manager interface directly from components #1578
Conversation
@rphillips: the contents of this pull request could not be automatically validated. The following commits are valid:
The following commits could not be validated and must be approved by a top-level approver:
Comment |
7e9d3dd
to
4f56cb6
Compare
@rphillips: the contents of this pull request could not be automatically validated. The following commits are valid:
The following commits could not be validated and must be approved by a top-level approver:
Comment |
/payload 4.14 nightly blocking |
@rphillips: trigger 7 job(s) of type blocking for the nightly release of OCP 4.14
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c01c04b0-f4d0-11ed-8b45-0b08046b69a5-0 trigger 4 job(s) of type blocking for the ci release of OCP 4.14
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c01c04b0-f4d0-11ed-8b45-0b08046b69a5-1 |
…ith pod termination" This reverts commit fd9f7ae.
…directly from components Shrinks the PodManager interface by one method, no abstraction is necessary here. kubelet: Merge orphaned mirror pod names into GetPodsAndMirrorPods There is only one caller and both sets of data are part of the resync operation between kubelet's desired state and the actual state of the pod workers. Reduces the size of the interface so that it is easier to create another pod manager. UPSTREAM: 117371: kubelet: Remove dispatchWork and inline calls to UpdatePod The HandlePod* methods are all structurally similar, but accrued subtle differences. In general the only point for Handle is to process admission and to update the pod worker with the desired state of the kubelet's config (so that pod worker can make it the actual state). Add a new GetPodAndMirrorPod() method that handles when the config pod is ambiguous (pod or mirror pod) and inline the structure. Add comments on questionable additions in the config methods for future improvement. Move the metric observation of container count closer to where pods are actually started (in the pod worker). A future change can likely move it to syncPod. UPSTREAM: 117371: kubelet: Separate the MirrorClient from the PodManager The two are not coupled except accidentally. Separate them and update callsites. This will reduce the scope of PodManager interface to make exposing the pod worker cleaner. UPSTREAM: 117371: kubelet: Organize and document kubelet pod-related members Clearly describe core pod related component responsibilities in the kubelet members. Organize the PodManager interface for clarity. UPSTREAM: 117371: kubelet: Reduce the interface pod.Manager consumers accept Every component that uses a pod.Manager should use a stub interface (like we do for podWorker) that explicitly describes what methods they use. This will allow podWorker to implement the minimum set of manager interfaces. UPSTREAM: 117371: kubelet: Rename PodManager DeletePod to RemovePod RemovePod is more consistent within the kubelet to be the opposite of AddPod, and the pod is not being deleted just "removed" from tracking. UPSTREAM: 117371: test: Improve debug output of init container tests When certain status conditions are not expected, we need to see the nested objects, but %#v doesn't handle pointers well. Output as simple encoded JSON. blah blah
4f56cb6
to
6f51555
Compare
@rphillips: the contents of this pull request could not be automatically validated. The following commits are valid:
The following commits could not be validated and must be approved by a top-level approver:
Comment |
/retest-required |
1 similar comment
/retest-required |
@rphillips: This pull request references Jira Issue OCPBUGS-13854, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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/test-infra repository. |
/jira refresh |
@rphillips: This pull request references Jira Issue OCPBUGS-13854, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (schoudha@redhat.com), skipping review request. 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/test-infra repository. |
@rphillips: This pull request references Jira Issue OCPBUGS-13854, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (schoudha@redhat.com), skipping review request. 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/test-infra repository. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: harche, mrunalp, rphillips 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 |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: harche, mrunalp, rphillips 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 |
@rphillips: The following tests failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
/retest-required |
38c64ac
into
openshift:master
@rphillips: Jira Issue OCPBUGS-13854: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-13854 has been moved to the MODIFIED state. 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/test-infra repository. |
/cherry-pick release-4.13 |
@harche: #1578 failed to apply on top of branch "release-4.13":
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/test-infra repository. |
Backports upstream kubelet patch replacing the readiness probe hack kubernetes#117371