-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (49 loc) · 1.61 KB
/
Makefile
File metadata and controls
59 lines (49 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Variables
CHART_DIR = charts/n8n
CHART_NAME = n8n
# Default target
.PHONY: help
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
# Linting
.PHONY: lint
lint: ## Lint the chart
@echo "Running Artifact Hub lint..."
@(cd $(CHART_DIR) && ah lint)
@echo "Running Helm lint..."
helm lint $(CHART_DIR)
@echo "Running Chart-Testing lint..."
ct lint --chart-dirs charts/n8n --charts charts/n8n --validate-maintainers=false
# Templating
.PHONY: template
template: ## Generate template output for the chart
@echo "Generating Helm template..."
helm template $(CHART_NAME) $(CHART_DIR)
.PHONY: template-debug
template-debug: ## Generate template with debug output
@echo "Generating Helm template with debug..."
helm template $(CHART_NAME) $(CHART_DIR) --debug
.PHONY: dry-run
dry-run: ## Perform a dry-run installation
@echo "Performing dry-run installation..."
helm install $(CHART_NAME) $(CHART_DIR) --dry-run --debug
# Local installation
.PHONY: install
install: ## Install the chart locally
@echo "Installing chart locally..."
helm install $(CHART_NAME) $(CHART_DIR)
.PHONY: upgrade
upgrade: ## Upgrade the installed chart
@echo "Upgrading chart..."
helm upgrade $(CHART_NAME) $(CHART_DIR)
.PHONY: uninstall
uninstall: ## Uninstall the chart
@echo "Uninstalling chart..."
helm uninstall $(CHART_NAME)
.PHONY: test
test: lint template dry-run ## Run all tests (lint, template, dry-run)
.PHONY: clean
clean: ## Clean up any generated files
@echo "Cleaning up..."
@rm -f *.tgz