Skip to content

Commit

Permalink
feature: kubectl plugin manager (krew) app (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
zloeber authored and osterman committed Nov 28, 2019
1 parent f4aa886 commit f24eff7
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ vendor/kfctl: vendor/kfctl/**
vendor/kind: vendor/kind/**
vendor/kops-1.12: vendor/kops-1.12/**
vendor/kops: vendor/kops/**
vendor/krew: vendor/krew/**
vendor/kubecron: vendor/kubecron/**
vendor/kubectl-1.13: vendor/kubectl-1.13/**
vendor/kubectl-1.14: vendor/kubectl-1.14/**
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ kfctl 0.7.0 Machine Learning Toolkit for Kubernetes
kind 0.6.0 A tool for running local Kubernetes clusters using Docker
kops 1.15.0 Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
kops-1.12 1.12.3 Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
krew 0.3.2 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.14.9 Production-Grade Container Scheduling and Management
kubectl-1.13 1.13.11 Production-Grade Container Scheduling and Management
Expand Down
1 change: 1 addition & 0 deletions docs/targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ kfctl 0.7.0 Machine Learning Toolkit for Kubernetes
kind 0.6.0 A tool for running local Kubernetes clusters using Docker
kops 1.15.0 Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
kops-1.12 1.12.3 Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
krew 0.3.2 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.14.9 Production-Grade Container Scheduling and Management
kubectl-1.13 1.13.11 Production-Grade Container Scheduling and Management
Expand Down
1 change: 1 addition & 0 deletions vendor/krew/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Kubectl plugin manager
1 change: 1 addition & 0 deletions vendor/krew/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APACHE-2.0
33 changes: 33 additions & 0 deletions vendor/krew/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Package template for non-github tarball

## Package details
export VENDOR = kubernetes-sigs
export PACKAGE_NAME = krew
export PACKAGE_REPO_NAME = krew
export DOWNLOAD_URL = $(PACKAGE_REPO_URL)/releases/download/v$(PACKAGE_VERSION)/krew.tar.gz

## APK build specific requirements
export APK_BUILD_TEMPLATE = APKBUILD.github-binary
## Uncomment only if you need additional libraries
#export APKBUILD_DEPENDS += libc6-compat musl

include ../../tasks/Makefile.package
include ../../tasks/Makefile.apk

## Package specific install code
install:
set -x; mkdir -p $(TMP)/krew && cd $(TMP)/krew && \
export KREW_ROOT=$(INSTALL_PATH) && \
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/download/v$(PACKAGE_VERSION)/krew.{tar.gz,yaml}" && \
tar zxvf krew.tar.gz && \
./krew-$(OS)_$(ARCH) install --manifest=krew.yaml --archive=krew.tar.gz && \
mv ./krew-$(OS)_$(ARCH) $(INSTALL_PATH)/krew

## Always include a test, this is custom per deployment and typically is just a version check
test:
krew version

# Custom post-package processing (Note the double colon to append to current inherited package/prepare task)
## This may be required for apk building
package/prepare::
mv src/krew-$(OS)_$(ARCH) src/krew
1 change: 1 addition & 0 deletions vendor/krew/RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions vendor/krew/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.2

0 comments on commit f24eff7

Please sign in to comment.