Verified Commit e1ff9858 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

added heptio-aws-auth checking.

parent 23e1bf74
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ help: ## show this help page
			cat $$f | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' || true; \
		fi; \
	done
	@make check-tools no_pull=true
	@make check-tools no-pull=true

.PHONY: show-makefile
show-makefile: ## show complete makefile w/ includes
@@ -52,11 +52,16 @@ reload-scripts: ## cleanup and reload utility scripts
	git clone ${SCRIPTS_REPO} ${SCRIPTS_DIR})

.PHONY: check-tools
check-tools: TOOLS=kubectl vault jq envsubst go kubectx heptio-authenticator-aws
check-tools: ## check if required tools are installed and accessible
	@for t in kubectl vault jq envsubst go; do \
	@for t in ${TOOLS}; do \
		if ! type $$t > /dev/null 2>&1; then \
			if [ "$$(uname -s)" == "Darwin" ]; then \
				brew install $$t; \
			else \
				echo ERROR: $$t command not found; \
			fi \
		fi \
	done

.PHONY: show-env