bumped kubectl to v1.24.0 (#8807)
This commit is contained in:
parent
ac3c338e7e
commit
8f9df544ea
2 changed files with 8 additions and 8 deletions
|
@ -36,7 +36,7 @@ if ! command -v kind &> /dev/null; then
|
|||
fi
|
||||
|
||||
if ! command -v kubectl &> /dev/null; then
|
||||
echo "Please install kubectl 1.15 or higher"
|
||||
echo "Please install kubectl 1.24.0 or higher"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -46,14 +46,14 @@ if ! command -v helm &> /dev/null; then
|
|||
fi
|
||||
|
||||
HELM_VERSION=$(helm version 2>&1 | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+') || true
|
||||
if [[ ${HELM_VERSION} < "v3.0.0" ]]; then
|
||||
echo "Please upgrade helm to v3.0.0 or higher"
|
||||
if [[ ${HELM_VERSION} < "v3.9.0" ]]; then
|
||||
echo "Please upgrade helm to v3.9.0 or higher"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
KUBE_CLIENT_VERSION=$(kubectl version --client --short 2>/dev/null | grep Client | awk '{print $3}' | cut -d. -f2) || true
|
||||
if [[ ${KUBE_CLIENT_VERSION} -lt 14 ]]; then
|
||||
echo "Please update kubectl to 1.15 or higher"
|
||||
if [[ ${KUBE_CLIENT_VERSION} -lt 24 ]]; then
|
||||
echo "Please update kubectl to 1.24.2 or higher"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -61,7 +61,7 @@ echo "[dev-env] building image"
|
|||
make build image
|
||||
docker tag "${REGISTRY}/controller:${TAG}" "${DEV_IMAGE}"
|
||||
|
||||
export K8S_VERSION=${K8S_VERSION:-v1.21.12@sha256:f316b33dd88f8196379f38feb80545ef3ed44d9197dca1bfd48bcb1583210207}
|
||||
export K8S_VERSION=${K8S_VERSION:-v1.24.2@sha256:1f0cee2282f43150b52dc7933183ed96abdcfc8d293f30ec07082495874876f1}
|
||||
|
||||
KIND_CLUSTER_NAME="ingress-nginx-dev"
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ build: ensure-buildx
|
|||
--build-arg BASE_IMAGE=$(NGINX_BASE_IMAGE) \
|
||||
--build-arg GOLANG_VERSION=1.18.2 \
|
||||
--build-arg ETCD_VERSION=3.4.3-0 \
|
||||
--build-arg K8S_RELEASE=v1.21.3 \
|
||||
--build-arg K8S_RELEASE=v1.24.2 \
|
||||
--build-arg RESTY_CLI_VERSION=0.27 \
|
||||
--build-arg RESTY_CLI_SHA=e5f4f3128af49ba5c4d039d0554e5ae91bbe05866f60eccfa96d3653274bff90 \
|
||||
--build-arg LUAROCKS_VERSION=3.8.0 \
|
||||
|
@ -49,7 +49,7 @@ build: ensure-buildx
|
|||
--build-arg CHART_TESTING_VERSION=3.0.0 \
|
||||
--build-arg YAML_LINT_VERSION=1.13.0 \
|
||||
--build-arg YAMALE_VERSION=1.8.0 \
|
||||
--build-arg HELM_VERSION=v3.4.2 \
|
||||
--build-arg HELM_VERSION=v3.9.0 \
|
||||
-t $(IMAGE):$(TAG) rootfs
|
||||
|
||||
# push the cross built image
|
||||
|
|
Loading…
Reference in a new issue