release icon indicating copy to clipboard operation
release copied to clipboard

images: Use crane for pushing release images instead of docker

Open claudiubelu opened this issue 11 months ago • 15 comments

What type of PR is this?

What this PR does / why we need it:

Currently, we're loading the images into docker, retagging them, and then push them onto the registry.

This workflow is incompatible with Windows images, as docker load does not work for them, resulting in the following error:

cannot load windows image on linux

However, crane does not load the image, it just pushes it directly with the given tag. This will allow us to push any Windows image we might have (e.g.: Windows kube-proxy image).

Which issue(s) this PR fixes:

Related: https://github.com/kubernetes/kubernetes/pull/109939

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

claudiubelu avatar Mar 07 '24 10:03 claudiubelu

@claudiubelu: Adding label: do-not-merge/blocked-paths because PR changes a protected file.

Reasons for blocking this PR:

[Changes to push-build.sh will immediately affect the Kubernetes CI. This PR must be explicitly approved by SIG Release repo admins.]

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 avatar Mar 07 '24 10:03 k8s-ci-robot

/ok-to-test

saschagrunert avatar Mar 07 '24 10:03 saschagrunert

/test pull-release-cluster-up

claudiubelu avatar Mar 07 '24 12:03 claudiubelu

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: claudiubelu Once this PR has been reviewed and has the lgtm label, please ask for approval from cpanato. For more information see the Kubernetes Code Review Process.

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 avatar Mar 25 '24 20:03 k8s-ci-robot

/test pull-release-cluster-up

claudiubelu avatar Apr 25 '24 14:04 claudiubelu

Any idea why the pull-release-cluster-up job is failing? The logs do not reveal much.

claudiubelu avatar Apr 26 '24 07:04 claudiubelu

/retest

saschagrunert avatar Apr 26 '24 07:04 saschagrunert

This job seems to have failed for a long time, let me create an issue for it.

Edit: https://github.com/kubernetes/release/issues/3588

saschagrunert avatar Apr 26 '24 07:04 saschagrunert

/sig windows

claudiubelu avatar May 16 '24 16:05 claudiubelu

This is going to allow us to publish Windows images similar to publishing Linux images

/kind feature /priority important-soon

aravindhp avatar May 16 '24 16:05 aravindhp

This PR depended on https://github.com/kubernetes/kubernetes/pull/109939, which just merged. We can move ahead with this PR.

claudiubelu avatar May 31 '24 15:05 claudiubelu

/test pull-release-cluster-up

claudiubelu avatar May 31 '24 15:05 claudiubelu

/fyi @jeremyrickard

jsturtevant avatar May 31 '24 15:05 jsturtevant

@claudiubelu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-release-cluster-up d04801aa5b29517f2265bc2e8bf0afef3e071cfc link true /test pull-release-cluster-up

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-sigs/prow repository. I understand the commands that are listed here.

k8s-ci-robot avatar May 31 '24 15:05 k8s-ci-robot

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Aug 29 '24 16:08 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Sep 28 '24 16:09 k8s-triage-robot