Skip to content

Commit 4b0d010

Browse files
committed
chore(makefile): improve helm-testing makes
Signed-off-by: Oliver Bähler <[email protected]>
1 parent c17230b commit 4b0d010

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

+7-6
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,18 @@ helm-docs: docker
103103
helm-lint: docker
104104
@docker run -v "$(SRC_ROOT):/workdir" --entrypoint /bin/sh quay.io/helmpack/chart-testing:v3.3.1 -c "cd /workdir; ct lint --config .github/configs/ct.yaml --lint-conf .github/configs/lintconf.yaml --all --debug"
105105

106-
helm-test: helm-controller-version kind ct ko-build-all
107-
@kind create cluster --wait=60s --name capsule-charts
108-
@kind load docker-image --name capsule-charts $(CAPSULE_PROXY_IMG):$(VERSION)
109-
@kubectl create ns capsule-system
110-
@make helm-install
106+
helm-test: helm-controller-version kind ct ko-build-all helm-create helm-install helm-destroy
111107

112108
helm-install:
113109
@kubectl apply --server-side=true -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.2/cert-manager.yaml
114110
@make install-capsule
115111
@kubectl apply --server-side=true -f https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.58.0/bundle.yaml
116-
@ct install --config $(SRC_ROOT)/.github/configs/ct.yaml --namespace=capsule-system --all --debug
112+
@$(CT) install --config $(SRC_ROOT)/.github/configs/ct.yaml --namespace=capsule-system --all --debug
113+
114+
helm-create:
115+
@kind create cluster --wait=60s --name capsule-charts
116+
@kind load docker-image --name capsule-charts $(CAPSULE_PROXY_IMG):$(VERSION)
117+
@kubectl create ns capsule-system
117118

118119
helm-destroy:
119120
@kind delete cluster --name capsule-charts

0 commit comments

Comments
 (0)