Skip to content

Commit 8b6de50

Browse files
committed
build: generate aws token in makefile target
1 parent 58bb86c commit 8b6de50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

make/dev.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ endif
3333

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

0 commit comments

Comments
 (0)