Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update aws credentials on kind bootstrap cluster #507

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading