Skip to content

Commit

Permalink
chore: add make target for setup which creates IAM roles (#2223)
Browse files Browse the repository at this point in the history
* Add make target for setup which creates IAM roles

* Update file permissions to 0755
  • Loading branch information
jonathan-innis authored Jul 30, 2022
1 parent 167154f commit c984cfa
Show file tree
Hide file tree
Showing 20 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ licenses: ## Verifies dependency licenses
go mod download
! go-licenses csv ./... | grep -v -e 'MIT' -e 'Apache-2.0' -e 'BSD-3-Clause' -e 'BSD-2-Clause' -e 'ISC' -e 'MPL-2.0'

setup: ## Sets up the IAM roles needed prior to deploying the karpenter-controller. This command only needs to be run once
hack/setup-roles.sh

apply: ## Deploy the controller from the current state of your git repository into your ~/.kube/config cluster
helm upgrade --create-namespace --install karpenter charts/karpenter --namespace karpenter \
$(HELM_OPTS) \
Expand Down
6 changes: 6 additions & 0 deletions hack/setup-roles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SCRIPT_DIR=website/content/en/preview/getting-started/getting-started-with-eksctl/scripts

"$SCRIPT_DIR"/step03-iam-cloud-formation.sh
"$SCRIPT_DIR"/step04-grant-access.sh
"$SCRIPT_DIR"/step05-controller-iam.sh
"$SCRIPT_DIR"/step06-add-spot-role.sh
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit c984cfa

Please sign in to comment.