images/kube-webhook-certgen/Makefile
Ruslan Aliev d18d404248 Add version 1.3.0 of kube-webhook-certgen
Required for helm chart ingress-nginx 3.5.1

Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: I8fc9df48be89d06dff6cda29fa430ab2791eeb98
2021-06-29 00:24:04 -05:00

46 lines
1.6 KiB
Makefile

# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
SHELL := /bin/bash
PUSH_IMAGE ?= false
IMAGE_NAME ?= kube-webhook-certgen
DOCKER_REGISTRY ?= quay.io
IMAGE_PREFIX ?= airshipit
IMAGE_TAGS := v1.3.0 v1.5.2
IMAGE := ${DOCKER_REGISTRY}/${IMAGE_PREFIX}/${IMAGE_NAME}:
PROXY ?= http://proxy.foo.com:8000
NO_PROXY ?= localhost,127.0.0.1,.svc.cluster.local
USE_PROXY ?= false
all: check-docker images
check-docker:
@if [ -z $$(which docker) ]; then \
echo "Missing \`docker\` client which is required for development"; \
exit 2; \
fi
images: check-docker
for i in $(IMAGE_TAGS); do \
docker pull jettech/kube-webhook-certgen:amd64-$$i; \
docker tag jettech/kube-webhook-certgen:amd64-$$i $(IMAGE)$$i; \
if [ $(PUSH_IMAGE) == "true" ] ; then \
docker push $(IMAGE)$$i; \
fi \
done
clean:
for i in $(IMAGE_TAGS); do \
docker rmi $(IMAGE)$$i; \
done
tests:
echo "Dummy Test to Pass gates"
.PHONY: all check-docker images clean tests