Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
build: update aws credentials on kind bootstrap cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
supershal committed Apr 11, 2024
1 parent 05b8c1a commit 5eb207c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,12 @@ 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: 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 rollout restart deployment capa-controller-manager -n capa-system
kubectl rollout status deployment capa-controller-manager -n capa-system

0 comments on commit 5eb207c

Please sign in to comment.