fix: extract kubelet and kubectl binaries from hyperkube's binary folder when possible #2298
Conversation
@mboersma thanks for the info. Are we still planning to support |
It's a good question, since there is no official hyperkube image for 1.17 onward. I guess the most backward-compatible decision would be to continue to honor |
Codecov Report
@@ Coverage Diff @@
## master #2298 +/- ##
=======================================
Coverage 71.61% 71.61%
=======================================
Files 142 142
Lines 24760 24760
=======================================
Hits 17731 17731
Misses 5901 5901
Partials 1128 1128 |
Just to insert myself where I wasn't invited... we should continue to support hyperkube images (including "bring your own hyperkube") indefinitely. |
@chewong since there isn't a hyperkube for 1.17 (except 1.17.0-alpha.1), is this a useful change? |
We could still build a hyperkube image in 1.17 using this Dockerfile after building component binaries in k8s/k8s. This PR accounts for the new hyperkube introduced by kubernetes/kubernetes#84662. However, the long term solution is to move away from building hyperkube in k8s/test-infra and build individual components instead. |
Thanks for the explanation. If this helps with upstream testing even temporarily, that's important. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chewong, mboersma 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 |
Reason for Change:
With kubernetes/kubernetes#84662, we can no longer obtain kubelet and kubectl binaries by renaming the hyperkube binary. Instead, we should extract them through hyperkube's binary folder when possible.
Issue Fixed:
Requirements:
Notes: