From d4a61512b4994ea53734c7b826380a40e087a1f3 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 23 May 2021 01:53:09 +0700 Subject: [PATCH] Cleaner KUBECONFIG --- apps/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/Makefile b/apps/Makefile index 118d978b..6ab43808 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -1,13 +1,16 @@ .POSIX: +.EXPORT_ALL_VARIABLES: + +KUBECONFIG = ../infra/kube_config.yaml default: init apply init: - kubectl create namespace argocd --dry-run=client -o yaml | kubectl --kubeconfig ../infra/kube_config.yaml apply -f - - kubectl --kubeconfig ../infra/kube_config.yaml apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml + kubectl create namespace argocd --dry-run=client -o yaml | kubectl apply -f - + kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml apply: - kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd apply --filename . + kubectl --namespace argocd apply --filename . delete: - kubectl --kubeconfig ../infra/kube_config.yaml --namespace argocd delete --filename . + kubectl --namespace argocd delete --filename .