fix: container image push to local cluster#8007
fix: container image push to local cluster#8007aaron-prindle merged 1 commit intoGoogleContainerTools:mainfrom
Conversation
Starting with version 2.x `skaffold` weren't pushing docker images to kind cluster(s), as result - deployment will fail due to lack of docker image. Verified changes on 3 [`examples`](/examples): * [getting-started](/examples/getting-started) * [kustomize](/examples/kustomize) * [helm-deployment](/examples/helm-deployment) Run `skaffold --kube-context=kind-kind dev` in each to validate docker images being pushed with this fix.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Codecov Report
@@ Coverage Diff @@
## main #8007 +/- ##
==========================================
- Coverage 70.48% 66.70% -3.78%
==========================================
Files 515 596 +81
Lines 23150 28900 +5750
==========================================
+ Hits 16317 19278 +2961
- Misses 5776 8198 +2422
- Partials 1057 1424 +367
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
I suggest renaming this PR to |
aaron-prindle
left a comment
There was a problem hiding this comment.
LGTM, thanks for the PR here @selfsk!!
|
FYI this still happens with Skaffold v2.0.4 (which I think should include #8007 iianm) |
Starting with version 2.x,
skaffoldisn't pushing container images to kind cluster(s), as result - deployment fail due to lack of container image. Issue #7992Verified changes on 3
examples:Run
skaffold --kube-context=kind-kind devin each to validate container images being pushed with this fix.Fixes: #7992
Description
It appeared that problem with skaffold not loading container images to kind cluster is due to the way how skaffold constructs the list of images that supposed to be pushed to cluster. Function
imagesToLoaditerating through different lists, and those lists kind of depend on each other.Result list check for docker images that being produced, but in case of
kubectlandhelmdeployers list of produced artifact hasn't been passed to this function at all, as resultskaffoldis treating as there were no images to push.