From f2586ce2631fc2954551425d7fd480059c364d0d Mon Sep 17 00:00:00 2001 From: Nuru Date: Sat, 18 Jan 2020 10:49:32 -0800 Subject: [PATCH] Create helm2, helm3, and kubectl-1.15 packages (#319) --- .github/auto-label.yml | 3 ++ README.md | 7 +++-- apk/templates/APKBUILD.github-binary | 2 +- docs/targets.md | 7 +++-- tasks/Makefile.package | 2 +- vendor/duffle/Makefile | 2 +- vendor/helm/Makefile | 3 ++ vendor/helm/helm.post-deinstall | 8 ++++++ vendor/helm/helm.post-install | 10 +++++++ vendor/helm2/DESCRIPTION | 1 + vendor/helm2/LICENSE | 1 + vendor/helm2/Makefile | 28 +++++++++++++++++++ vendor/helm2/RELEASE | 1 + vendor/helm2/VERSION | 1 + vendor/helm2/helm2.post-deinstall | 9 ++++++ vendor/helm2/helm2.post-install | 12 ++++++++ vendor/helm3/DESCRIPTION | 1 + vendor/helm3/LICENSE | 1 + vendor/helm3/Makefile | 28 +++++++++++++++++++ vendor/helm3/RELEASE | 1 + vendor/helm3/VERSION | 1 + vendor/helm3/helm3.post-deinstall | 9 ++++++ vendor/helm3/helm3.post-install | 12 ++++++++ vendor/kfctl/Makefile | 2 +- vendor/kubectl-1.13/VERSION | 2 +- vendor/kubectl-1.14/VERSION | 2 +- .../kubectl-1.14/kubectl-1.14.post-deinstall | 2 +- vendor/kubectl-1.15/DESCRIPTION | 1 + vendor/kubectl-1.15/LICENSE | 1 + vendor/kubectl-1.15/Makefile | 22 +++++++++++++++ vendor/kubectl-1.15/RELEASE | 1 + vendor/kubectl-1.15/VERSION | 1 + .../kubectl-1.15/kubectl-1.15.post-deinstall | 9 ++++++ vendor/kubectl-1.15/kubectl-1.15.post-install | 12 ++++++++ 34 files changed, 194 insertions(+), 11 deletions(-) create mode 100755 vendor/helm/helm.post-deinstall create mode 100755 vendor/helm/helm.post-install create mode 100644 vendor/helm2/DESCRIPTION create mode 100644 vendor/helm2/LICENSE create mode 100644 vendor/helm2/Makefile create mode 100644 vendor/helm2/RELEASE create mode 100644 vendor/helm2/VERSION create mode 100755 vendor/helm2/helm2.post-deinstall create mode 100755 vendor/helm2/helm2.post-install create mode 100644 vendor/helm3/DESCRIPTION create mode 100644 vendor/helm3/LICENSE create mode 100644 vendor/helm3/Makefile create mode 100644 vendor/helm3/RELEASE create mode 100644 vendor/helm3/VERSION create mode 100755 vendor/helm3/helm3.post-deinstall create mode 100755 vendor/helm3/helm3.post-install create mode 100644 vendor/kubectl-1.15/DESCRIPTION create mode 100644 vendor/kubectl-1.15/LICENSE create mode 100644 vendor/kubectl-1.15/Makefile create mode 100644 vendor/kubectl-1.15/RELEASE create mode 100644 vendor/kubectl-1.15/VERSION create mode 100755 vendor/kubectl-1.15/kubectl-1.15.post-deinstall create mode 100755 vendor/kubectl-1.15/kubectl-1.15.post-install diff --git a/.github/auto-label.yml b/.github/auto-label.yml index a2566058e2..73207f1851 100644 --- a/.github/auto-label.yml +++ b/.github/auto-label.yml @@ -48,6 +48,8 @@ vendor/goofys: vendor/goofys/** vendor/gosu: vendor/gosu/** vendor/gotop: vendor/gotop/** vendor/helm: vendor/helm/** +vendor/helm2: vendor/helm2/** +vendor/helm3: vendor/helm3/** vendor/helmfile: vendor/helmfile/** vendor/htmltest: vendor/htmltest/** vendor/hugo: vendor/hugo/** @@ -65,6 +67,7 @@ vendor/krew: vendor/krew/** vendor/kubecron: vendor/kubecron/** vendor/kubectl-1.13: vendor/kubectl-1.13/** vendor/kubectl-1.14: vendor/kubectl-1.14/** +vendor/kubectl-1.15: vendor/kubectl-1.15/** vendor/kubectl: vendor/kubectl/** vendor/kubectx: vendor/kubectx/** vendor/kubens: vendor/kubens/** diff --git a/README.md b/README.md index a4bd2031f2..469b14f469 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,8 @@ goofys 0.23.1 a high-performance, POSIX-ish Amazon S3 fil gosu 1.11 Simple Go-based setuid+setgid+setgroups+exec gotop 3.0.0 A terminal based graphical activity monitor inspired by gtop and vtop helm 3.0.2 The Kubernetes Package Manager +helm2 2.16.1 The Kubernetes Package Manager +helm3 3.0.2 The Kubernetes Package Manager helmfile 0.98.2 Deploy Kubernetes Helm Charts htmltest 0.11.0 :white_check_mark: Test generated HTML for problems hugo 0.62.2 The world’s fastest framework for building websites. @@ -297,8 +299,9 @@ kops-1.12 1.12.3 Kubernetes Operations (kops) - Production G krew 0.3.3 Kubectl plugin manager kubecron 1.0.2 Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob kubectl 1.15.8 Production-Grade Container Scheduling and Management -kubectl-1.13 1.13.11 Production-Grade Container Scheduling and Management -kubectl-1.14 1.14.7 Production-Grade Container Scheduling and Management +kubectl-1.13 1.13.12 Production-Grade Container Scheduling and Management +kubectl-1.14 1.14.10 Production-Grade Container Scheduling and Management +kubectl-1.15 1.15.8 Production-Grade Container Scheduling and Management kubectx 0.7.1 Switch faster between clusters and namespaces in kubectl kubens 0.7.1 Switch faster between clusters and namespaces in kubectl lazydocker 0.7.6 The lazier way to manage everything docker diff --git a/apk/templates/APKBUILD.github-binary b/apk/templates/APKBUILD.github-binary index 2c7ac33a9f..1c70d8295d 100644 --- a/apk/templates/APKBUILD.github-binary +++ b/apk/templates/APKBUILD.github-binary @@ -127,7 +127,7 @@ build() { # This function is called right after the build stage. # It should check that the packaged thing is actually working check() { - make -C ${APK_TMP_DIR} --no-print-directory -s test PATH=$PATH:$srcdir HOME=/tmp + make -C ${APK_TMP_DIR} --no-print-directory -s test PATH="$PATH:$srcdir" HOME=/tmp } # This is the packaging stage. diff --git a/docs/targets.md b/docs/targets.md index b319fecdb6..48f6e89c13 100644 --- a/docs/targets.md +++ b/docs/targets.md @@ -32,6 +32,8 @@ goofys 0.23.1 a high-performance, POSIX-ish Amazon S3 fil gosu 1.11 Simple Go-based setuid+setgid+setgroups+exec gotop 3.0.0 A terminal based graphical activity monitor inspired by gtop and vtop helm 3.0.2 The Kubernetes Package Manager +helm2 2.16.1 The Kubernetes Package Manager +helm3 3.0.2 The Kubernetes Package Manager helmfile 0.98.2 Deploy Kubernetes Helm Charts htmltest 0.11.0 :white_check_mark: Test generated HTML for problems hugo 0.62.2 The world’s fastest framework for building websites. @@ -48,8 +50,9 @@ kops-1.12 1.12.3 Kubernetes Operations (kops) - Production G krew 0.3.3 Kubectl plugin manager kubecron 1.0.2 Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob kubectl 1.15.8 Production-Grade Container Scheduling and Management -kubectl-1.13 1.13.11 Production-Grade Container Scheduling and Management -kubectl-1.14 1.14.7 Production-Grade Container Scheduling and Management +kubectl-1.13 1.13.12 Production-Grade Container Scheduling and Management +kubectl-1.14 1.14.10 Production-Grade Container Scheduling and Management +kubectl-1.15 1.15.8 Production-Grade Container Scheduling and Management kubectx 0.7.1 Switch faster between clusters and namespaces in kubectl kubens 0.7.1 Switch faster between clusters and namespaces in kubectl lazydocker 0.7.6 The lazier way to manage everything docker diff --git a/tasks/Makefile.package b/tasks/Makefile.package index 023bace913..28e116fa42 100644 --- a/tasks/Makefile.package +++ b/tasks/Makefile.package @@ -152,7 +152,7 @@ CURRENT_VERSION: API=releases/latest CURRENT_VERSION: QUERY=.tag_name CURRENT_VERSION: @local_version=$$(cat VERSION || echo 0); \ - current_version=$$(env PATH=$(PATH) github-repo-metadata $(VENDOR) $(PACKAGE_REPO_NAME) '$(API)' '$(QUERY)' | sed 's/^v//'); \ + current_version=$$(env PATH='$(PATH)' github-repo-metadata $(VENDOR) $(PACKAGE_REPO_NAME) '$(API)' '$(QUERY)' | sed 's/^v//'); \ if [ $$? -ne 0 ]; then \ exit 1; \ elif [ "$${current_version}" == "null" -o -z "$${current_version}" ]; then \ diff --git a/vendor/duffle/Makefile b/vendor/duffle/Makefile index cfb114d2cc..3e154b0fc8 100644 --- a/vendor/duffle/Makefile +++ b/vendor/duffle/Makefile @@ -6,7 +6,7 @@ export PACKAGE_NAME = duffle export PACKAGE_REPO_NAME = duffle export GITHUB_VERSION := $(shell cat VERSION) -export PACKAGE_VERSION := $(shell echo ${GITHUB_VERSION} | sed -E 's/\-beta\.([0-9]++)/b\1/') +export PACKAGE_VERSION := $(shell echo ${GITHUB_VERSION} | sed -E 's/\-beta\.([0-9]+)/b\1/') export DOWNLOAD_URL = $(PACKAGE_REPO_URL)/releases/download/$(GITHUB_VERSION)/duffle-$(OS)-$(ARCH) ## APK build specific requirements diff --git a/vendor/helm/Makefile b/vendor/helm/Makefile index 61420d783a..b883769021 100644 --- a/vendor/helm/Makefile +++ b/vendor/helm/Makefile @@ -5,6 +5,9 @@ include ../../tasks/Makefile.apk export VENDOR ?= helm export DOWNLOAD_URL ?= https://get.helm.sh/helm-v$(PACKAGE_VERSION)-$(OS)-$(ARCH).tar.gz export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export MAJOR_VERSION = latest +export INSTALL_DIR = /usr/share/${PACKAGE_NAME}/${MAJOR_VERSION}/bin install: mkdir -p $(TMP)/$(PACKAGE_NAME) diff --git a/vendor/helm/helm.post-deinstall b/vendor/helm/helm.post-deinstall new file mode 100755 index 0000000000..df1654ca40 --- /dev/null +++ b/vendor/helm/helm.post-deinstall @@ -0,0 +1,8 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=helm +MAJOR_VERSION=latest +PACKAGE_NAME=${MASTER_PACKAGE_NAME} +INSTALL_DIR=/usr/share/${PACKAGE_NAME}/${MAJOR_VERSION}/bin +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/helm/helm.post-install b/vendor/helm/helm.post-install new file mode 100755 index 0000000000..c599ad81bd --- /dev/null +++ b/vendor/helm/helm.post-install @@ -0,0 +1,10 @@ +#!/bin/sh +# This is an Alpine Package `post-install` hook that links +# an alternative from `/usr/share/${PACKAGE_NAME}/$version/bin` into `/usr/bin/` +MASTER_PACKAGE_NAME=helm +MAJOR_VERSION=latest +PACKAGE_NAME=${MASTER_PACKAGE_NAME} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +mkdir -p ${INSTALL_DIR} +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 99 +exit 0 diff --git a/vendor/helm2/DESCRIPTION b/vendor/helm2/DESCRIPTION new file mode 100644 index 0000000000..151fb84335 --- /dev/null +++ b/vendor/helm2/DESCRIPTION @@ -0,0 +1 @@ +The Kubernetes Package Manager diff --git a/vendor/helm2/LICENSE b/vendor/helm2/LICENSE new file mode 100644 index 0000000000..7a85ddd4e2 --- /dev/null +++ b/vendor/helm2/LICENSE @@ -0,0 +1 @@ +APACHE-2.0 diff --git a/vendor/helm2/Makefile b/vendor/helm2/Makefile new file mode 100644 index 0000000000..5f141ac3c3 --- /dev/null +++ b/vendor/helm2/Makefile @@ -0,0 +1,28 @@ +export MASTER_PACKAGE_NAME = helm +export MAJOR_VERSION = 2 +export PACKAGE_NAME = $(MASTER_PACKAGE_NAME)$(MAJOR_VERSION) +export PACKAGE_REPO_NAME = helm +export DOWNLOAD_URL ?= https://get.helm.sh/helm-v$(PACKAGE_VERSION)-$(OS)-$(ARCH).tar.gz + +include ../../tasks/Makefile.package +include ../../tasks/Makefile.apk + +# Package details +export VENDOR ?= helm +export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary +export AUTO_UPDATE_ENABLED = false +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +install: + mkdir -p $(TMP)/$(PACKAGE_NAME) + $(CURL) -o - $(DOWNLOAD_URL) | tar -C $(TMP)/$(PACKAGE_NAME) -zx $(OS)-$(ARCH)/helm + mv $(TMP)/$(PACKAGE_NAME)/$(OS)-$(ARCH)/helm $(INSTALL_PATH)/$(PACKAGE_NAME) + rm -rf $(TMP)/$(PACKAGE_NAME) + chmod +x $(INSTALL_PATH)/$(PACKAGE_NAME) + +test: + ($(PACKAGE_NAME) version || true) 2>&1 | grep Version + +package/prepare:: + mv src/$(OS)-$(ARCH)/helm src/helm2 diff --git a/vendor/helm2/RELEASE b/vendor/helm2/RELEASE new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/vendor/helm2/RELEASE @@ -0,0 +1 @@ +0 diff --git a/vendor/helm2/VERSION b/vendor/helm2/VERSION new file mode 100644 index 0000000000..0e7079b691 --- /dev/null +++ b/vendor/helm2/VERSION @@ -0,0 +1 @@ +2.16.1 diff --git a/vendor/helm2/helm2.post-deinstall b/vendor/helm2/helm2.post-deinstall new file mode 100755 index 0000000000..0dd6f21cf1 --- /dev/null +++ b/vendor/helm2/helm2.post-deinstall @@ -0,0 +1,9 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=helm +MAJOR_VERSION=2 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/helm2/helm2.post-install b/vendor/helm2/helm2.post-install new file mode 100755 index 0000000000..46bcc23985 --- /dev/null +++ b/vendor/helm2/helm2.post-install @@ -0,0 +1,12 @@ +#!/bin/sh +# This is an Alpine Package `post-install` hook that links +# an alternative from `/usr/share/${PACKAGE_NAME}/$version/bin` into `/usr/bin/` +MASTER_PACKAGE_NAME=helm +MAJOR_VERSION=2 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} +update-alternatives --install /usr/bin/${PACKAGE_NAME} ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 1 +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 21 +exit 0 diff --git a/vendor/helm3/DESCRIPTION b/vendor/helm3/DESCRIPTION new file mode 100644 index 0000000000..151fb84335 --- /dev/null +++ b/vendor/helm3/DESCRIPTION @@ -0,0 +1 @@ +The Kubernetes Package Manager diff --git a/vendor/helm3/LICENSE b/vendor/helm3/LICENSE new file mode 100644 index 0000000000..7a85ddd4e2 --- /dev/null +++ b/vendor/helm3/LICENSE @@ -0,0 +1 @@ +APACHE-2.0 diff --git a/vendor/helm3/Makefile b/vendor/helm3/Makefile new file mode 100644 index 0000000000..62bcc8df72 --- /dev/null +++ b/vendor/helm3/Makefile @@ -0,0 +1,28 @@ +export MASTER_PACKAGE_NAME = helm +export MAJOR_VERSION = 3 +export PACKAGE_NAME = $(MASTER_PACKAGE_NAME)$(MAJOR_VERSION) +export PACKAGE_REPO_NAME = helm +export DOWNLOAD_URL ?= https://get.helm.sh/helm-v$(PACKAGE_VERSION)-$(OS)-$(ARCH).tar.gz + +include ../../tasks/Makefile.package +include ../../tasks/Makefile.apk + +# Package details +export VENDOR ?= helm +export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary +export AUTO_UPDATE_ENABLED = false +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +install: + mkdir -p $(TMP)/$(PACKAGE_NAME) + $(CURL) -o - $(DOWNLOAD_URL) | tar -C $(TMP)/$(PACKAGE_NAME) -zx $(OS)-$(ARCH)/helm + mv $(TMP)/$(PACKAGE_NAME)/$(OS)-$(ARCH)/helm $(INSTALL_PATH)/$(PACKAGE_NAME) + rm -rf $(TMP)/$(PACKAGE_NAME) + chmod +x $(INSTALL_PATH)/$(PACKAGE_NAME) + +test: + ($(PACKAGE_NAME) version || true) 2>&1 | grep Version + +package/prepare:: + mv src/$(OS)-$(ARCH)/helm src/helm3 diff --git a/vendor/helm3/RELEASE b/vendor/helm3/RELEASE new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/vendor/helm3/RELEASE @@ -0,0 +1 @@ +0 diff --git a/vendor/helm3/VERSION b/vendor/helm3/VERSION new file mode 100644 index 0000000000..b502146930 --- /dev/null +++ b/vendor/helm3/VERSION @@ -0,0 +1 @@ +3.0.2 diff --git a/vendor/helm3/helm3.post-deinstall b/vendor/helm3/helm3.post-deinstall new file mode 100755 index 0000000000..30dee21229 --- /dev/null +++ b/vendor/helm3/helm3.post-deinstall @@ -0,0 +1,9 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=helm +MAJOR_VERSION=3 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/helm3/helm3.post-install b/vendor/helm3/helm3.post-install new file mode 100755 index 0000000000..d8742ee911 --- /dev/null +++ b/vendor/helm3/helm3.post-install @@ -0,0 +1,12 @@ +#!/bin/sh +# This is an Alpine Package `post-install` hook that links +# an alternative from `/usr/share/${PACKAGE_NAME}/$version/bin` into `/usr/bin/` +MASTER_PACKAGE_NAME=helm +MAJOR_VERSION=3 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} +update-alternatives --install /usr/bin/${PACKAGE_NAME} ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 1 +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 31 +exit 0 diff --git a/vendor/kfctl/Makefile b/vendor/kfctl/Makefile index f5f5dbae14..df14c90ac4 100644 --- a/vendor/kfctl/Makefile +++ b/vendor/kfctl/Makefile @@ -7,7 +7,7 @@ include ../../tasks/Makefile.package include ../../tasks/Makefile.apk # Package details -export DOWNLOAD_URL := $(shell env PATH=$(PATH) github-repo-metadata $(VENDOR) $(PACKAGE_REPO_NAME) 'releases/tags/v$(PACKAGE_VERSION)' '.assets | .[] | .browser_download_url | select(.|contains("$(OS)"))') +export DOWNLOAD_URL := $(shell env PATH='$(PATH)' github-repo-metadata $(VENDOR) $(PACKAGE_REPO_NAME) 'releases/tags/v$(PACKAGE_VERSION)' '.assets | .[] | .browser_download_url | select(.|contains("$(OS)"))') install: $(call download_tarball) diff --git a/vendor/kubectl-1.13/VERSION b/vendor/kubectl-1.13/VERSION index 66fae2a638..4428455ee0 100644 --- a/vendor/kubectl-1.13/VERSION +++ b/vendor/kubectl-1.13/VERSION @@ -1 +1 @@ -1.13.11 +1.13.12 diff --git a/vendor/kubectl-1.14/VERSION b/vendor/kubectl-1.14/VERSION index 52e779f28f..9beda55f85 100644 --- a/vendor/kubectl-1.14/VERSION +++ b/vendor/kubectl-1.14/VERSION @@ -1 +1 @@ -1.14.7 +1.14.10 diff --git a/vendor/kubectl-1.14/kubectl-1.14.post-deinstall b/vendor/kubectl-1.14/kubectl-1.14.post-deinstall index 1a62e0a4b1..d93efe8c5b 100755 --- a/vendor/kubectl-1.14/kubectl-1.14.post-deinstall +++ b/vendor/kubectl-1.14/kubectl-1.14.post-deinstall @@ -1,7 +1,7 @@ #!/bin/sh # This is an Alpine `deinstall` hook that removes the alternative MASTER_PACKAGE_NAME=kubectl -MAJOR_VERSION=1.13 +MAJOR_VERSION=1.14 PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet diff --git a/vendor/kubectl-1.15/DESCRIPTION b/vendor/kubectl-1.15/DESCRIPTION new file mode 100644 index 0000000000..9bab5da0bb --- /dev/null +++ b/vendor/kubectl-1.15/DESCRIPTION @@ -0,0 +1 @@ +Production-Grade Container Scheduling and Management diff --git a/vendor/kubectl-1.15/LICENSE b/vendor/kubectl-1.15/LICENSE new file mode 100644 index 0000000000..7a85ddd4e2 --- /dev/null +++ b/vendor/kubectl-1.15/LICENSE @@ -0,0 +1 @@ +APACHE-2.0 diff --git a/vendor/kubectl-1.15/Makefile b/vendor/kubectl-1.15/Makefile new file mode 100644 index 0000000000..df91884a19 --- /dev/null +++ b/vendor/kubectl-1.15/Makefile @@ -0,0 +1,22 @@ +export MASTER_PACKAGE_NAME = kubectl +export MAJOR_VERSION = 1.15 +export PACKAGE_NAME = $(MASTER_PACKAGE_NAME)-$(MAJOR_VERSION) +export PACKAGE_REPO_NAME = kubernetes + +include ../../tasks/Makefile.package +include ../../tasks/Makefile.apk + +# Package details +export VENDOR = kubernetes +export DOWNLOAD_URL = https://storage.googleapis.com/kubernetes-release/release/v$(PACKAGE_VERSION)/bin/$(OS)/$(ARCH)/kubectl +export APK_BUILD_TEMPLATE = APKBUILD.github-binary +export APKBUILD_DEPENDS += dpkg +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +export AUTO_UPDATE_ENABLED = false + +install: + $(call download_binary) + +test: + $(PACKAGE_EXE) --help diff --git a/vendor/kubectl-1.15/RELEASE b/vendor/kubectl-1.15/RELEASE new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/vendor/kubectl-1.15/RELEASE @@ -0,0 +1 @@ +0 diff --git a/vendor/kubectl-1.15/VERSION b/vendor/kubectl-1.15/VERSION new file mode 100644 index 0000000000..98e863cdf8 --- /dev/null +++ b/vendor/kubectl-1.15/VERSION @@ -0,0 +1 @@ +1.15.8 diff --git a/vendor/kubectl-1.15/kubectl-1.15.post-deinstall b/vendor/kubectl-1.15/kubectl-1.15.post-deinstall new file mode 100755 index 0000000000..8321a048e1 --- /dev/null +++ b/vendor/kubectl-1.15/kubectl-1.15.post-deinstall @@ -0,0 +1,9 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=kubectl +MAJOR_VERSION=1.15 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/kubectl-1.15/kubectl-1.15.post-install b/vendor/kubectl-1.15/kubectl-1.15.post-install new file mode 100755 index 0000000000..19c1ae85f6 --- /dev/null +++ b/vendor/kubectl-1.15/kubectl-1.15.post-install @@ -0,0 +1,12 @@ +#!/bin/sh +# This is an Alpine Package `post-install` hook that links +# an alternative from `/usr/share/${PACKAGE_NAME}/$version/bin` into `/usr/bin/` +MASTER_PACKAGE_NAME=kubectl +MAJOR_VERSION=1.15 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} +update-alternatives --install /usr/bin/${PACKAGE_NAME} ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 1 +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} 15 +exit 0