fix: acessing clusters with private dns (#1903)

Co-authored-by: Gustavo Okuyama <gustavo.okuyama@ifood.com.br>
mine
Gustavo Okuyama 2023-02-04 13:16:30 -03:00 committed by GitHub
parent 3320d37be7
commit 82e841f6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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