@@ -22,12 +22,12 @@ fmt-fix: fmt-markdown-fix fmt-shell-fix fmt-yaml-fix ## Fix all files formatting
2222.PHONY : fmt-markdown
2323fmt-markdown : # # Check Markdown files formatting
2424 @echo " Checking Markdown files formatting"
25- prettier -c ** /* .md
25+ prettier -c " **/*.md"
2626
2727.PHONY : fmt-markdown-fix
2828fmt-markdown-fix : # # Fix Markdown files formatting
2929 @echo " Fixing Markdown files formatting"
30- prettier -w ** /* .md
30+ prettier -w " **/*.md"
3131
3232.PHONY : fmt-shell
3333fmt-shell : # # Check shell scripts formatting
@@ -42,12 +42,17 @@ fmt-shell-fix: ## Fix shell scripts formatting
4242.PHONY : fmt-yaml
4343fmt-yaml : # # Check YAML files formatting
4444 @echo " Checking YAML files formatting"
45- prettier -c ** /* .yaml
45+ prettier -c " **/*.yaml"
4646
4747.PHONY : fmt-yaml-fix
4848fmt-yaml-fix : # # Fix YAML files formatting
4949 @echo " Fixing YAML files formatting"
50- prettier -w ** /* .yaml
50+ prettier -w " **/*.yaml"
51+
52+ .PHONY : helm-deps-update
53+ helm-deps-update : # # Update chart dependencies
54+ @echo " Updating ${CHART_NAME} chart dependencies"
55+ helm dependency update charts/${CHART_NAME}
5156
5257.PHONY : helm-docs
5358helm-docs : # # Generate Helm docs
@@ -60,6 +65,16 @@ helm-install: kind-create-cluster ## Install chart
6065 @echo " Installing ${CHART_NAME} chart"
6166 helm install ${CHART_NAME} charts/${CHART_NAME} -n ${CHART_NAMESPACE} --values=${CHART_VALUES} --create-namespace --wait
6267
68+ .PHONY : helm-package
69+ helm-package : clean # # Package Helm charts
70+ @echo " Packaging Helm charts"
71+ cr package charts/${CHART_NAME}
72+
73+ .PHONY : helm-test
74+ helm-test : # # Run chart tests
75+ @echo " Running ${CHART_NAME} chart tests"
76+ helm test ${CHART_NAME} --namespace ${CHART_NAMESPACE}
77+
6378.PHONY : helm-template
6479helm-template : clean # # Render chart templates
6580 @echo " Rendering ${CHART_NAME} chart templates"
@@ -86,7 +101,7 @@ help: ## Show this help message
86101 @echo " Usage: make [target]"
87102 @echo " "
88103 @echo " Available Targets:"
89- @awk ' BEGIN {FS = ":.*?## "} /^[a-zA-Z_ -]+:.*?## / {printf " %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST )
104+ @awk ' BEGIN {FS = ":.*?## "} /^[a-zA-Z_0-9 -]+:.*?## / {printf " %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST )
90105
91106.PHONY : install-deps
92107install-deps : # # Install dependencies
@@ -122,6 +137,8 @@ install-deps-linux: ## Install dependencies for Linux
122137 @echo " Installing helm-unittest"
123138 @if ! helm plugin list | grep -q ' unittest' ; then \
124139 helm plugin install https://github.com/helm-unittest/helm-unittest; \
140+ else \
141+ echo " Warning: helm-unittest plugin is already installed" ; \
125142 fi
126143 @echo " Installing helm-docs"
127144 go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
@@ -196,7 +213,7 @@ lint-helm: ## Lint Helm charts
196213.PHONY : lint-markdown
197214lint-markdown : # # Lint Markdown files
198215 @echo " Linting Markdown files"
199- markdownlint ' **/*.md'
216+ markdownlint -d " **/*.md"
200217
201218.PHONY : lint-shell
202219lint-shell : # # Lint shell scripts
@@ -208,23 +225,21 @@ lint-yaml: ## Lint YAML files
208225 @echo " Linting YAML files"
209226 yamllint .
210227
211- .PHONY : package
212- package : clean # # Package Helm charts
213- @echo " Packaging Helm charts"
214- cr package charts/${CHART_NAME}
215-
216228.PHONY : pre-commit
217229pre-commit : fmt lint test-unit # # Run pre-commit hooks
218230
231+ .PHONY : test
232+ test : test-unit test-e2e # # Run all tests
233+
219234.PHONY : test-e2e
220235test-e2e : # # Run end-to-end tests
221236 @echo " Running end-to-end tests for ${CHART_NAME} chart"
222237 ${TEST_E2E_DIR} /test-e2e.sh --charts=charts/${CHART_NAME} --debug
223238
239+ .PHONY : test-integration
240+ test-integration : helm-test # # Run integration tests
241+
224242.PHONY : test-unit
225243test-unit : # # Run unit tests
226244 @echo " Running unit tests"
227245 helm unittest charts/*
228-
229- .PHONY : test
230- test : test-unit test-e2e # # Run all tests
0 commit comments