Skip to content

Commit

Permalink
Add a make build target used for make apply
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Aug 3, 2022
1 parent 5a1008c commit 80f3fe0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,15 @@ licenses: ## Verifies dependency licenses
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
build: ## Build the Karpenter controller and webhook images using ko build
$(eval CONTROLLER_IMG=$(shell $(WITH_GOFLAGS) ko build -B github.com/aws/karpenter/cmd/controller))
$(eval WEBHOOK_IMG=$(shell $(WITH_GOFLAGS) ko build -B github.com/aws/karpenter/cmd/webhook))

apply: build ## 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) \
--set controller.image=$(shell $(WITH_GOFLAGS) ko build -B github.com/aws/karpenter/cmd/controller) \
--set webhook.image=$(shell $(WITH_GOFLAGS) ko build -B github.com/aws/karpenter/cmd/webhook)
--set controller.image=$(WEBHOOK_IMG) \
--set webhook.image=$(CONTROLLER_IMG)

install: ## Deploy the latest released version into your ~/.kube/config cluster
@echo Upgrading to $(shell grep version charts/karpenter/Chart.yaml)
Expand Down

0 comments on commit 80f3fe0

Please sign in to comment.