mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #67083 from mkumatag/docker-check
Automatic merge from submit-queue (batch tested with PRs 67058, 67083, 67220, 67222, 67209). 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 a check for docker version to push fat manifest images **What this PR does / why we need it**: **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 # This is for adding a check to avoid any corrupted fat manifest creation. **Special notes for your reviewer**: @dims @luxas **Release note**: ```release-note NONE ```
This commit is contained in:
commit
a8eb00666d
@ -92,8 +92,17 @@ build() {
|
||||
done
|
||||
}
|
||||
|
||||
docker_version_check() {
|
||||
docker_version=$(docker version --format '{{.Client.Version}}' | cut -d"-" -f1)
|
||||
if [[ ${docker_version} != 18.06.0 && ${docker_version} < 18.06.0 ]]; then
|
||||
echo "Minimum docker version 18.06.0 is required for creating and pushing manifest images[found: ${docker_version}]"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# This function will push the docker images
|
||||
push() {
|
||||
docker_version_check
|
||||
TAG=$(<${IMAGE}/VERSION)
|
||||
if [[ -f ${IMAGE}/BASEIMAGE ]]; then
|
||||
archs=$(listArchs)
|
||||
|
Loading…
Reference in New Issue
Block a user