From 86bb430807a50c16c52bea5ecf57500f012b0de5 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Thu, 18 Aug 2022 13:49:47 -0600 Subject: [PATCH] Create secret on install (#424) --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index b3fcf5ad..c1e8ee76 100644 --- a/Makefile +++ b/Makefile @@ -113,6 +113,7 @@ helm-build: kustomize ## Build helm chart into tar file install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config. kubectl get namespace eksa-packages || kubectl create namespace eksa-packages $(KUSTOMIZE) build config/crd | kubectl apply -f - + kubectl create secret -n eksa-packages generic aws-secret --from-literal=REGION=$(EKSA_AWS_REGION) --from-literal=ID=$(EKSA_AWS_ACCESS_KEY_ID) --from-literal=SECRET=$(EKSA_AWS_SECRET_ACCESS_KEY) uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. kubectl delete packages -n eksa-packages $(kubectl get packages -n eksa-packages --no-headers -o custom-columns=":metadata.name") && sleep 5 || true