From 044f82850e28d407482844a222a3fac03ccce959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Va=C5=A1ek?= Date: Fri, 14 Jun 2024 10:07:07 +0200 Subject: [PATCH] fix: codegen does not use current ns (#2366) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Force empyt kubeconfig so default namespace in --help is "default" not the current kubeconfig context. Signed-off-by: Matej VaĊĦek --- hack/update-codegen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index cbb676d537..8c59cbbbea 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -20,7 +20,7 @@ set -o pipefail source "$(go run knative.dev/hack/cmd/script library.sh)" -go run ${REPO_ROOT_DIR}/docs/generator/main.go +KUBECONFIG="$(mktemp)" go run ${REPO_ROOT_DIR}/docs/generator/main.go # Make sure our dependencies are up-to-date ${REPO_ROOT_DIR}/hack/update-deps.sh