mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Merge branch 'andrey-kind-helm-image' into 'master'
Add image for cng deployment See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/766 Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com> Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com> Co-authored-by: Andrejs Cunskis <acunskis@gitlab.com>
This commit is contained in:
commit
85ce04586a
5 changed files with 54 additions and 1 deletions
|
|
@ -309,6 +309,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
|
||||
|
||||
|
|
@ -316,6 +321,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 "
|
||||
|
||||
|
|
@ -358,6 +379,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue