build: set kubeconfig from global Makefile

Separate build steps in Tekton can use service account instead of config file
This commit is contained in:
Khue Doan 2022-05-14 20:06:57 +07:00
parent 7b1afcc55c
commit dc7d1256a0
3 changed files with 4 additions and 7 deletions

View File

@ -1,5 +1,9 @@
.POSIX: .POSIX:
.PHONY: * .PHONY: *
.EXPORT_ALL_VARIABLES:
KUBECONFIG = $(shell pwd)/metal/kubeconfig.yaml
KUBE_CONFIG_PATH = $(KUBECONFIG)
default: metal bootstrap wait default: metal bootstrap wait

View File

@ -1,7 +1,4 @@
.POSIX: .POSIX:
.EXPORT_ALL_VARIABLES:
KUBECONFIG = $(shell pwd)/../metal/kubeconfig.yaml
default: namespace argocd root default: namespace argocd root

View File

@ -1,8 +1,4 @@
.POSIX: .POSIX:
.EXPORT_ALL_VARIABLES:
KUBECONFIG = ../metal/kubeconfig.yaml
KUBE_CONFIG_PATH = $(KUBECONFIG)
default: apply default: apply