Skip to content

Commit

Permalink
add debug flag to helm install
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
  • Loading branch information
rajatjindal committed Mar 6, 2024
1 parent 7fb443e commit 5e6a470
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/helm-install-smoketest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: helm install spin-operator
run: |
make helm-install IMG=spin-operator:latest
make helm-install IMG=spin-operator:latest HELM_EXTRA_ARGS=--debug
- name: create containerd-shim-spin executor
run: kubectl create -f config/samples/spin-shim-executor.yaml
Expand All @@ -67,10 +67,11 @@ jobs:
run: |
kubectl get pods -A
kubectl get pods -n spin-operator
kubectl logs -n spin-operator $(kubectl get pods -n spin-operator | grep spin-operator-controller-manager | awk '{print $1}')
kubectl describe -n spin-operator pod $(kubectl get pods -n spin-operator | grep spin-operator-controller-manager | awk '{print $1}')
kubectl logs -n spin-operator $(kubectl get pods -n spin-operator | grep wait-for-webhook-svc | awk '{print $1}')
kubectl describe -n spin-operator pod $(kubectl get pods -n spin-operator | grep wait-for-webhook-svc | awk '{print $1}')
kubectl get certificate -n spin-operator
kubectl logs -n spin-operator $(kubectl get pods -n spin-operator | grep spin-operator-controller-manager | awk '{print $1}') || true
kubectl describe -n spin-operator pod $(kubectl get pods -n spin-operator | grep spin-operator-controller-manager | awk '{print $1}') || true
kubectl logs -n spin-operator $(kubectl get pods -n spin-operator | grep wait-for-webhook-svc | awk '{print $1}') || true
kubectl describe -n spin-operator pod $(kubectl get pods -n spin-operator | grep wait-for-webhook-svc | awk '{print $1}') || true
- name: run spin app
run: |
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,15 @@ HELM_RELEASE ?= $(CHART_NAME)
HELM_NAMESPACE ?= $(CHART_NAME)
IMG_REPO := $(shell echo "${IMG}" | cut -d ':' -f 1)
IMG_TAG := $(shell echo "${IMG}" | cut -d ':' -f 2)
HELM_EXTRA_ARGS ?=

.PHONY: helm-install
helm-install: helm-generate ## Install the Helm chart onto the K8s cluster specified in ~/.kube/config.
$(HELM) upgrade --install \
-n $(HELM_NAMESPACE) \
--create-namespace \
--wait \
$(HELM_EXTRA_ARGS) \
--set controllerManager.manager.image.repository=$(IMG_REPO) \
--set controllerManager.manager.image.tag=$(IMG_TAG) \
$(HELM_RELEASE) charts/$(CHART_NAME)
Expand All @@ -241,6 +243,7 @@ helm-upgrade: helm-install ## Upgrade the Helm release.
helm-uninstall: ## Delete the Helm release.
$(HELM) delete \
-n $(HELM_NAMESPACE) \
$(HELM_EXTRA_ARGS) \
$(HELM_RELEASE)

##@ Build Dependencies
Expand Down

0 comments on commit 5e6a470

Please sign in to comment.