Skip to content

Commit

Permalink
build: generate aws token in makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
supershal committed Apr 16, 2024
1 parent 58bb86c commit 8b6de50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions make/dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ endif

.PHONY: dev.update-bootstrap-credentials-aws
dev.update-bootstrap-credentials-aws: export KUBECONFIG := $(KIND_KUBECONFIG)
dev.update-bootstrap-credentials-aws: export AWS_B64ENCODED_CREDENTIALS := $(shell clusterawsadm bootstrap credentials encode-as-profile)
dev.update-bootstrap-credentials-aws:
kubectl patch secret capa-manager-bootstrap-credentials -n capa-system -p='{"data":{"credentials": "$(AWS_B64ENCODED_CREDENTIALS)"}}'
kubectl patch secret capa-manager-bootstrap-credentials -n capa-system -p="{\"data\":{\"credentials\": \"$$(clusterawsadm bootstrap credentials encode-as-profile)\"}}"
kubectl rollout restart deployment capa-controller-manager -n capa-system
kubectl rollout status deployment capa-controller-manager -n capa-system

0 comments on commit 8b6de50

Please sign in to comment.