Kind: Support for force-loading images

Created on 10 Dec 2019  路  12Comments  路  Source: kubernetes-sigs/kind

What would you like to be added:
A --force flag to kind load docker-image to overwrite images if already present.

Why is this needed:
In local development, often I find myself loading new images into kind and have to change the tag to accomplish this.

kinfeature prioritawaiting-more-evidence

Most helpful comment

Thank you!

All 12 comments

they should be reloaded if the tag is the same but the image ID is not.

what kind version are you using? you should not need to change the tag.

I'll try again in v0.6.1 tomorrow and report back

ACK -- we definitely had a bug with this before but it was theoretically fixed in 0.6 IIRC

FYI, I had mentioned this to Vince as something that I ran into, but I haven't tried it with 0.6.x yet.

/priority awaiting-evidence

@BenTheElder: The label(s) priority/awaiting-evidence cannot be applied, because the repository doesn't have them

In response to this:

/priority awaiting-evidence

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.

@vincepri were you able to try this on 0.6.1 ?

Not yet, will probably get around to it next week

nudge :+)
if we can repro, I'd like to get this fixed. I _think_ it is already.

just confirmed it works.

Steps:

  • Build image with tag
  • Load image, shows:
$ kind load docker-image gcr.io/vincepri-dev/cluster-api-controller-amd64:dev
Image: "gcr.io/vincepri-dev/cluster-api-controller-amd64:dev" with ID "sha256:207351bf38c413daf1eb1ebbef4b0e1ed1332f6e925eda1327440db8e4fe3947" not present on node "kind-control-plane"
  • Make change, rebuild image with same tag
  • Load image, shows:
$ kind load docker-image gcr.io/vincepri-dev/cluster-api-controller-amd64:dev
Image: "gcr.io/vincepri-dev/cluster-api-controller-amd64:dev" with ID "sha256:37e1ee7b8242e33d3ccfbabba2144dbc99ecef72de842a65a8234f802b7b8ed2" not present on node "kind-control-plane"

/close

馃帀

@vincepri: Closing this issue.

In response to this:

just confirmed it works.

Steps:

  • Build image with tag
  • Load image, shows:
$ kind load docker-image gcr.io/vincepri-dev/cluster-api-controller-amd64:dev
Image: "gcr.io/vincepri-dev/cluster-api-controller-amd64:dev" with ID "sha256:207351bf38c413daf1eb1ebbef4b0e1ed1332f6e925eda1327440db8e4fe3947" not present on node "kind-control-plane"
  • Make change, rebuild image with same tag
  • Load image, shows:
$ kind load docker-image gcr.io/vincepri-dev/cluster-api-controller-amd64:dev
Image: "gcr.io/vincepri-dev/cluster-api-controller-amd64:dev" with ID "sha256:37e1ee7b8242e33d3ccfbabba2144dbc99ecef72de842a65a8234f802b7b8ed2" not present on node "kind-control-plane"

/close

馃帀

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.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wilmardo picture wilmardo  路  29Comments

nilebox picture nilebox  路  40Comments

aojea picture aojea  路  40Comments

carlisia picture carlisia  路  31Comments

BenTheElder picture BenTheElder  路  58Comments