From 82e841f6c3809067d1aa19ee6b1542c508caefce Mon Sep 17 00:00:00 2001 From: Gustavo Okuyama Date: Sat, 4 Feb 2023 13:16:30 -0300 Subject: [PATCH] fix: acessing clusters with private dns (#1903) Co-authored-by: Gustavo Okuyama --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e862bc4..97722e0e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ NAME := k9s GO_FLAGS ?= +GO_TAGS ?= netcgo CGO_ENABLED?=0 OUTPUT_BIN ?= execs/${NAME} PACKAGE := github.com/derailed/$(NAME) @@ -26,7 +27,7 @@ cover: ## Run test coverage suite build: ## Builds the CLI @CGO_ENABLED=${CGO_ENABLED} go build ${GO_FLAGS} \ -ldflags "-w -s -X ${PACKAGE}/cmd.version=${VERSION} -X ${PACKAGE}/cmd.commit=${GIT_REV} -X ${PACKAGE}/cmd.date=${DATE}" \ - -a -tags netgo -o ${OUTPUT_BIN} main.go + -a -tags=${GO_TAGS} -o ${OUTPUT_BIN} main.go kubectl-stable-version: ## Get kubectl latest stable version @curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt