Skip to content

Commit

Permalink
Create secret on install (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryHowe authored Aug 18, 2022
1 parent 9963625 commit 86bb430
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86bb430

Please sign in to comment.