Verified Commit 90de4b8d authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Do not use sub-shell in getting NODES so we can have the correct KUBECONFIG context.

parent e3653271
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ get-images: ## List all images running in the cluster
check-images: ## check all running images
	kube-images-report.sh
.PHONY: cordon
cordon: NODES = $(shell kubectl get node -o json  | jq -r '.items[].metadata.name')
cordon: NODES = $$(kubectl get node -o json  | jq -r '.items[].metadata.name')
cordon: ## Disable scheduling on a node
	kubectl get nodes
	@for i in ${NODES}; do \