Skip to content

Commit 882e957

Browse files
authored
chore: add cloudformation target to Makefile (#8323)
1 parent 0ed0bcb commit 882e957

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,15 @@ update-karpenter: ## Update kubernetes-sigs/karpenter to latest
213213
go get -u sigs.k8s.io/karpenter@HEAD
214214
go mod tidy
215215

216+
.PHONY: deploy-cfn
217+
deploy-cfn: ## Deploys the cloudformation stack defined in the docs preview directory
218+
aws cloudformation deploy \
219+
--stack-name "Karpenter-${CLUSTER_NAME}" \
220+
--template-file "./website/content/en/preview/getting-started/getting-started-with-karpenter/cloudformation.yaml" \
221+
--capabilities CAPABILITY_NAMED_IAM \
222+
--parameter-overrides "ClusterName=${CLUSTER_NAME}"
223+
224+
216225
.PHONY: help presubmit ci-test ci-non-test run test deflake e2etests e2etests-deflake benchmark coverage verify vulncheck licenses image apply install delete docgen codegen stable-release-pr snapshot release prepare-website toolchain issues website tidy download update-karpenter
217226

218227
define newline

0 commit comments

Comments
 (0)