Skip to content

Commit

Permalink
Merge pull request #101 from jxs1211/fix/helm-install-failed
Browse files Browse the repository at this point in the history
fix helm install failed if ns doesn't be created beforehand
  • Loading branch information
jwcesign authored Nov 7, 2024
2 parents 449c836 + 4f81637 commit 142c8b6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ image: ## Build the Karpenter controller images using ko build
$(eval IMG_TAG=$(shell echo $(CONTROLLER_IMG) | cut -d "@" -f 1 | cut -d ":" -f 2 -s))

apply: image ## Deploy the controller from the current state of your git repository into your ~/.kube/config cluster
helm upgrade --install karpenter charts/karpenter --namespace ${KARPENTER_NAMESPACE} \
$(HELM_OPTS) \
--set logLevel=debug \
--set controller.image.repository=$(IMG_REPOSITORY) \
--set controller.image.tag=$(IMG_TAG) \
helm upgrade --install karpenter charts/karpenter \
--create-namespace \
--namespace ${KARPENTER_NAMESPACE} \
$(HELM_OPTS) \
--set logLevel=debug \
--set controller.image.repository=$(IMG_REPOSITORY) \
--set controller.image.tag=$(IMG_TAG) \

delete: ## Delete the controller from your kubeconfig cluster
helm uninstall karpenter --namespace ${KARPENTER_NAMESPACE}
Expand Down

0 comments on commit 142c8b6

Please sign in to comment.