Skip to content

Commit

Permalink
build: update aws credentials on kind bootstrap cluster (#507)
Browse files Browse the repository at this point in the history
creates makefile target to update the expired aws credentials and
restart capa-controller.
make dev.update-bootstrap-credentials-aws reads similar to our existing
command dkp update bootstrap credentials aws
  • Loading branch information
supershal committed Apr 16, 2024
1 parent 381a6e3 commit 20f3e42
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions make/dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ endif
kubectl rollout restart deployment cluster-api-runtime-extensions-nutanix
kubectl rollout status deployment cluster-api-runtime-extensions-nutanix

.PHONY: dev.update-webhook-image-on-kind
dev.update-webhook-image-on-kind: export KUBECONFIG := $(KIND_KUBECONFIG)
dev.update-webhook-image-on-kind:
ifndef SKIP_BUILD
$(MAKE) release-snapshot
Expand All @@ -27,3 +29,11 @@ endif
kubectl set image deployment cluster-api-runtime-extensions-nutanix webhook=ko.local/cluster-api-runtime-extensions-nutanix:$$(gojq -r .version dist/metadata.json)
kubectl rollout restart deployment cluster-api-runtime-extensions-nutanix
kubectl rollout status deployment cluster-api-runtime-extensions-nutanix


.PHONY: dev.update-bootstrap-credentials-aws
dev.update-bootstrap-credentials-aws: export KUBECONFIG := $(KIND_KUBECONFIG)
dev.update-bootstrap-credentials-aws:
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 20f3e42

Please sign in to comment.