Add image for cng deployment

This commit is contained in:
Andrejs Cunskis 2024-02-07 05:11:19 +00:00 committed by Balasankar 'Balu' C
parent 9bba95420a
commit 45f078d6f1
5 changed files with 54 additions and 1 deletions

10
scripts/install-kind Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -eu
KIND_VERSION=${1}
KIND_DOWNLOAD_SHA256=${2}
/scripts/download-file "kind" "https://kind.sigs.k8s.io/dl/v${KIND_VERSION}/kind-linux-${TARGETARCH:-amd64}" "$KIND_DOWNLOAD_SHA256"
chmod +x kind
mv kind /usr/local/bin/ && kind --version

View file

@ -319,6 +319,11 @@ function print_helm_args() {
HELM_DOWNLOAD_SHA256[amd64]=31960ff2f76a7379d9bac526ddf889fb79241191f1dbe2a24f7864ddcb3f6560
HELM_DOWNLOAD_SHA256[arm64]=d24163e466f7884c55079d1050968e80a05b633830047116cdfd8ae28d35b0c0
;;
3.14)
HELM_VERSION=3.14.0
HELM_DOWNLOAD_SHA256[amd64]=f43e1c3387de24547506ab05d24e5309c0ce0b228c23bd8aa64e9ec4b8206651
HELM_DOWNLOAD_SHA256[arm64]=b29e61674731b15f6ad3d1a3118a99d3cc2ab25a911aad1b8ac8c72d5a9d2952
;;
*) fail "Unknown helm version $1" ;;
esac
@ -326,6 +331,22 @@ function print_helm_args() {
printf -- "--build-arg HELM_DOWNLOAD_SHA256=%q " "${HELM_DOWNLOAD_SHA256[*]}"
}
function print_kind_args() {
declare -A KIND_DOWNLOAD_SHA256
case "$1" in
0.20)
KIND_VERSION=0.20.0
KIND_DOWNLOAD_SHA256[amd64]=513a7213d6d3332dd9ef27c24dab35e5ef10a04fa27274fe1c14d8a246493ded
KIND_DOWNLOAD_SHA256[arm64]=639f7808443559aa30c3642d9913b1615d611a071e34f122340afeda97b8f422
;;
*) fail "Unknown helm version $1" ;;
esac
printf -- "--build-arg KIND_VERSION=%s " "$KIND_VERSION"
printf -- "--build-arg KIND_DOWNLOAD_SHA256=%q " "${KIND_DOWNLOAD_SHA256[*]}"
}
function parse_arguments() {
printf -- "-f Dockerfile.custom "
@ -368,6 +389,7 @@ function parse_arguments() {
GCLOUD) print_gcloud_args $version ;;
KUBECTL) print_kubectl_args $version ;;
HELM) print_helm_args $version ;;
KIND) print_kind_args $version ;;
*) fail "Unknown tool $tool" ;;
esac
fi

View file

@ -2,7 +2,7 @@
# various variable operations used in this script.
PATH_TOOLS=(DEBIAN OS UBI RUBY GOLANG RUST NODE POSTGRESQL)
TAG_TOOLS=(BUNDLER RUBYGEMS GIT LFS CHROME YARN GRAPHICSMAGICK EXIFTOOL BAZELISK DOCKER GCLOUD KUBECTL HELM)
TAG_TOOLS=(BUNDLER RUBYGEMS GIT LFS CHROME YARN GRAPHICSMAGICK EXIFTOOL BAZELISK DOCKER GCLOUD KUBECTL HELM KIND)
# Generate the docker image path using the components that were specified via
# variables.