Skip to content
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

add additional-images flag to build command #2159

Closed
wants to merge 1 commit into from

Conversation

dkoshkin
Copy link

A solution for #2063

Add a way to specify additional images to pull when running kind build node-image with a new flag --additional-images.

My use-case is to have a kind image that is used in an air-gapped cluster that includes a few additional images.
There is no easy way to extend the existing kindest/node images (please correct me here if there is some process), kind load is an option but its less desirable for my use case since it would require to package and ship around multiple images instead of just the one kindest/node image.

Add a way to specify additional images to pull when running kind build node-image
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dkoshkin
To complete the pull request process, please assign amwat after the PR has been reviewed.
You can assign the PR to them by writing /assign @amwat in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 25, 2021
@BenTheElder
Copy link
Member

BenTheElder commented Mar 25, 2021

Please file a feature request and discuss a design first: https://kind.sigs.k8s.io/docs/contributing/getting-started/#4-reaching-out
(we are looking at instituting a better process for recording proposals, but in the meantime we use feature issues)

Some questions to consider:

  • should we pull images if they're not present locally?
    • if we're pulling images, should we just pull them directly to containerd instead of to the host?
  • what about podman?
  • what about tarballs / image archives?
  • what about image eviction in the future? should kind be responsible for somehow preventing these images from being evicted if we re-enable eviction once we have a solution for the core images?
  • could we instead support this in a way that involved extending an existing node image without having to build from source? would that be better?

EDIT: We are also looking to stabilize the CLI, APIs, etc., so we want to consider future usage etc. before adding features, so we can avoid needing to make a breaking change to it to support the full set of use cases.
EDIT2: Thanks for the PR as well though 😅

@dkoshkin
Copy link
Author

Hi @BenTheElder thanks for the quick reply!

Sorry should have dug around the docs more to find the contributing process, as you may have guessed this is my first attempt at a contribution to kind 😰

I created a feature ticket #2160 so I can close this and move the discussion there?

@k8s-ci-robot
Copy link
Contributor

@dkoshkin: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kind-e2e-kubernetes-1-19 6162253 link /test pull-kind-e2e-kubernetes-1-19
pull-kind-e2e-kubernetes-1-20 6162253 link /test pull-kind-e2e-kubernetes-1-20
pull-kind-e2e-kubernetes 6162253 link /test pull-kind-e2e-kubernetes

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@BenTheElder
Copy link
Member

No worries! We need to put more effort into surfacing this and improving the process 😅

Apologies in advance for the scattered response latency, we're trying to wrap up some things for the next release and all of us work on other projects as well (upstream kubernetes in particular). I know Antonio and I also have a little bit of time out / vacation intermittently in the next two weeks.

@k8s-ci-robot
Copy link
Contributor

@dkoshkin: 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 14, 2021
@BenTheElder
Copy link
Member

I think #2303 will be a more powerful alternative based on the discussion in the #2160. (and save people the trouble of having to build a node image again)

@BenTheElder
Copy link
Member

thanks again for the PR! tentatively closing in favor of the other approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants