-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Override Docker download URL #6956
Conversation
Hi @austinmoore-. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @justinsb |
Hi. Hoping this can get looked at, tested, and merged. We really need this as we can not download Docker from the public repo. Thanks! |
@justinsb @robinpercy @rdrgmnzs please take a look at the PR. |
This looks good and would be nice to have! |
/ok-to-test |
@justinsb @robinpercy @rdrgmnzs is there anything needs to be done from the community to get this PR merged and back ported to 1.13 and/or 1.14 if the release is really soon? |
/retest |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: austinmoore- The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Removed |
/test pull-kops-e2e-kubernetes-aws |
Any chance this will make it into the next release? @rdrgmnzs |
c87daf9
to
a2cf79a
Compare
Rebased on to master |
/test pull-kops-verify-generated |
a2cf79a
to
f343335
Compare
Rebased onto master |
@rdrgmnzs @robinpercy hoping to get this merged for the next release. Can you (or someone) take a look? This is a needed feature for my workplace. |
/hold Reconsidering this, because it doesn't handle instance groups |
Closing in favor of #7974. |
Allows users to specify where to download Docker with a new
spec.dockerInstall.overrideSources
spec. See the added docs for details on how to use it.This is effectively a way to override the built in dockerVersions slice and specify your own. This provides a nice escape hatch if you cannot download from external repos and must use internal mirrors (as in my company's situation). Ideally this would just be a url and hash. However, some packages have dependencies that need to be specified and other packages need to be installed simultaneously with other packages.
There are some considerations to keep in mind with this feature. This solution isn't the most intuitive for a user because the user will probably just end up looking at
dockerVersions
to find their OS and Docker version. If the user changes their OS or Docker version, this might cause problems if they forget to update this configuration. I'm open to ideas on how to handle these situations.I think this might be a stop-gap measure for a more robust solution. For example, in the future it might be better to provide a way to override the base download URL like we do for some other resources. I didn't do this because I figured it was better to expose full control for something like this. I also wasn't sure if we need to consider mirrored repos that do not have the same path (not sure how common this would be).
Another option could be to allow a way to externalize the data in
dockerVersions
to a YAML file in S3 as part of the cluster that the user could then edit or specify.