Skip to content

Commit 97957cb

Browse files
author
Terry Howe
committed
Creat secret on install
1 parent 97f0ddc commit 97957cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ helm-build: kustomize ## Build helm chart into tar file
113113
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
114114
kubectl get namespace eksa-packages || kubectl create namespace eksa-packages
115115
$(KUSTOMIZE) build config/crd | kubectl apply -f -
116+
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)
116117

117118
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
118119
kubectl delete packages -n eksa-packages $(kubectl get packages -n eksa-packages --no-headers -o custom-columns=":metadata.name") && sleep 5 || true

0 commit comments

Comments
 (0)