Skip to content

Commit

Permalink
add a Makefile target for applying the latest known version
Browse files Browse the repository at this point in the history
This is useful for resetting your cluster back to the latest released
version, or while releasing a new version testing out the newly
pushed public images.
  • Loading branch information
tzneal committed Mar 24, 2022
1 parent 24bd161 commit dfa5cb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@ licenses: ## Verifies dependency licenses and requires GITHUB_TOKEN to be set
$(WITH_GOFLAGS) go build -o karpenter cmd/controller/main.go
golicense hack/license-config.hcl karpenter

apply: ## Deploy the controller into your ~/.kube/config cluster
apply: ## Deploy the controller from the current state of your git repository into your ~/.kube/config cluster
helm upgrade --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)

apply-latest-release: ## Deploy the late released version into your ~/.kube/config cluster
@echo Upgrading to $(shell grep version charts/karpenter/Chart.yaml)
helm upgrade --install karpenter charts/karpenter --namespace karpenter \
$(HELM_OPTS)

delete: ## Delete the controller from your ~/.kube/config cluster
helm uninstall karpenter --namespace karpenter

Expand Down

0 comments on commit dfa5cb1

Please sign in to comment.