Unverified Commit edff1493 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #63453 from nitkon/master

Automatic merge from submit-queue (batch tested with PRs 63453, 64592, 64482, 64618, 64661). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add Makefile target to push fat manifest for multi-arch images Signed-off-by: 's avatarNitesh Konkar <niteshkonkar@in.ibm.com> **What this PR does / why we need it**: This PR adds support to push fat manifest for multi-arch images. We need this so that we can seamlessly pull and run the test images on multiple platforms. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
parents 46d2b471 ae23e19f
......@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
include ../../hack/make-rules/Makefile.manifest
REGISTRY ?= gcr.io/kubernetes-e2e-test-images
GOARM=7
QEMUVERSION=v2.9.1
......@@ -34,7 +36,7 @@ all: all-container
all-container:
./image-util.sh build $(WHAT)
all-push: all-container
all-push: all-container manifest-tool
./image-util.sh push $(WHAT)
.PHONY: all all-push all-container
......@@ -99,6 +99,10 @@ push() {
TAG=$(<${IMAGE}/VERSION)
docker push ${REGISTRY}/${IMAGE}-${arch}:${TAG}
done
# Make archs list into OS/architecture pair. Eg: 'amd64 ppc64le' to 'linux/amd64,linux/ppc64le'
archs=$(echo $archs | sed -e 's/[^ ]* */linux\/&/g' -e 's/ /,/g')
manifest-tool push from-args --platforms ${archs} --template ${REGISTRY}/${IMAGE}-ARCH:${TAG} --target ${REGISTRY}/${IMAGE}:${TAG}
}
# This function is for building the go code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment