Skip to content

Commit

Permalink
Bumped up versions of go, alpine, operator sdk, docker, cri-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
senthilrch committed May 23, 2021
1 parent 5fccd34 commit 06bc206
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
- hack/verify-golint.sh
- hack/verify-govet.sh
# BUILD_OUTPUT is left empty to indicate buildx to leave the built images in it's cache
- travis_wait 30 make BUILD_OUTPUT= controller-amd64 webhook-server-amd64
- travis_wait 30 make BUILD_OUTPUT= PROGRESS=plain controller-amd64 webhook-server-amd64
- make test
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci
- stage: build_multiarch
script:
- echo "$DOCKERHUB_PSWD" | docker login --username "$DOCKERHUB_USER" --password-stdin
# BUILD_OUTPUT=--push requests buildx to push the built images to docker hub
- travis_wait 60 make release
- travis_wait 60 make PROGRESS=plain release
- stage: build_release
script:
- echo "Release tag pushed. nothing to do!!"
22 changes: 13 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ ifndef RELEASE_VERSION
endif

ifndef DOCKER_VERSION
DOCKER_VERSION=19.03.8
DOCKER_VERSION=20.10.6
endif

ifndef CRICTL_VERSION
CRICTL_VERSION=v1.18.0
CRICTL_VERSION=v1.21.0
endif

ifndef GOLANG_VERSION
GOLANG_VERSION=1.14.2
GOLANG_VERSION=1.16.4
endif

ifndef ALPINE_VERSION
ALPINE_VERSION=3.11.6
ALPINE_VERSION=3.13.5
endif

ifndef OPERATORSDK_VERSION
OPERATORSDK_VERSION=v0.17.1
OPERATORSDK_VERSION=v1.72
endif

ifndef TARGET_PLATFORMS
Expand All @@ -78,6 +78,10 @@ ifndef BUILD_OUTPUT
BUILD_OUTPUT=--push
endif

ifndef PROGRESS
PROGRESS=auto
endif

ifndef OPERATOR_NAMESPACE
OPERATOR_NAMESPACE=kubefledged-operator
endif
Expand Down Expand Up @@ -121,7 +125,7 @@ clean-operator:
controller-image: clean-controller
docker buildx build --platform=${TARGET_PLATFORMS} -t ${CONTROLLER_IMAGE_REPO}:${RELEASE_VERSION} \
-t ${CONTROLLER_IMAGE_REPO}:latest -f build/Dockerfile.controller ${HTTP_PROXY_CONFIG} ${HTTPS_PROXY_CONFIG} \
--build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --progress=plain ${BUILD_OUTPUT} .
--build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --progress=${PROGRESS} ${BUILD_OUTPUT} .

controller-amd64: TARGET_PLATFORMS=linux/amd64
controller-amd64: install-buildx controller-image
Expand All @@ -135,7 +139,7 @@ controller-dev: clean-controller
webhook-server-image: clean-webhook-server
docker buildx build --platform=${TARGET_PLATFORMS} -t ${WEBHOOK_SERVER_IMAGE_REPO}:${RELEASE_VERSION} \
-t ${WEBHOOK_SERVER_IMAGE_REPO}:latest -f build/Dockerfile.webhook_server ${HTTP_PROXY_CONFIG} ${HTTPS_PROXY_CONFIG} \
--build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --progress=plain ${BUILD_OUTPUT} .
--build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --progress=${PROGRESS} ${BUILD_OUTPUT} .

webhook-server-amd64: TARGET_PLATFORMS=linux/amd64
webhook-server-amd64: install-buildx webhook-server-image
Expand All @@ -150,12 +154,12 @@ cri-client-image: clean-cri-client
docker buildx build --platform=${TARGET_PLATFORMS} -t ${CRI_CLIENT_IMAGE_REPO}:${RELEASE_VERSION} \
-t ${CRI_CLIENT_IMAGE_REPO}:latest -f build/Dockerfile.cri_client ${HTTP_PROXY_CONFIG} ${HTTPS_PROXY_CONFIG} \
--build-arg DOCKER_VERSION=${DOCKER_VERSION} --build-arg CRICTL_VERSION=${CRICTL_VERSION} \
--build-arg ALPINE_VERSION=${ALPINE_VERSION} --progress=plain ${BUILD_OUTPUT} .
--build-arg ALPINE_VERSION=${ALPINE_VERSION} --progress=${PROGRESS} ${BUILD_OUTPUT} .

operator-image: clean-operator
cd deploy/kubefledged-operator && \
docker buildx build --platform=${OPERATOR_TARGET_PLATFORMS} -t ${OPERATOR_IMAGE_REPO}:${RELEASE_VERSION} \
-t ${OPERATOR_IMAGE_REPO}:latest -f build/Dockerfile --build-arg OPERATORSDK_VERSION=${OPERATORSDK_VERSION} --progress=plain ${BUILD_OUTPUT} .
-t ${OPERATOR_IMAGE_REPO}:latest -f build/Dockerfile --build-arg OPERATORSDK_VERSION=${OPERATORSDK_VERSION} --progress=${PROGRESS} ${BUILD_OUTPUT} .

release: install-buildx controller-image webhook-server-image cri-client-image operator-image

Expand Down

0 comments on commit 06bc206

Please sign in to comment.