Skip to content

Commit

Permalink
Added delete namespace to uninstall process (#458)
Browse files Browse the repository at this point in the history
* Added delete namespace to uninstall process
  • Loading branch information
njtran authored Jun 16, 2021
1 parent 8500d7d commit 7fcd1bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ licenses: ## Verifies dependency licenses and requires GITHUB_TOKEN to be set
golicense hack/license-config.hcl karpenter

apply: ## Deploy the controller into your ~/.kube/config cluster
helm template karpenter charts/karpenter \
kubectl create ns karpenter || true
helm template karpenter charts/karpenter --namespace karpenter \
$(HELM_OPTS) \
--create-namespace --namespace karpenter \
--set controller.image=ko://github.com/awslabs/karpenter/cmd/controller \
--set webhook.image=ko://github.com/awslabs/karpenter/cmd/webhook \
--set serviceAccount.annotations.'eks\.amazonaws\.com/role-arn'=\"$$(kubectl get configmaps aws-auth -n kube-system -ojsonpath='{.data.mapRoles}' | grep KarpenterNodeRole | head -1 | cut -d ' ' -f3)\" \
| $(WITH_GOFLAGS) ko apply -B -f -

delete: ## Delete the controller from your ~/.kube/config cluster
helm template karpenter charts/karpenter --namespace karpenter | kubectl delete -f -
kubectl delete ns karpenter

codegen: ## Generate code. Must be run if changes are made to ./pkg/apis/...
controller-gen \
Expand Down

0 comments on commit 7fcd1bb

Please sign in to comment.