-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (61 loc) · 2.67 KB
/
Copy pathMakefile
File metadata and controls
85 lines (61 loc) · 2.67 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Main Makefile - Entry point for all operations
include Makefile.defs
.PHONY: help all test clean
.DEFAULT_GOAL := help
help: ## Show this help message
@printf '%b\n' ''
@printf '%b\n' '$(BLUE)Cilium Deployment Project$(NC)'
@printf '%b\n' ''
@printf '%b\n' 'Usage:'
@printf '%b\n' ' make <target>'
@printf '%b\n' ''
@printf '%b\n' 'Main Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " $(BLUE)%-20s$(NC) %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@printf '%b\n' ''
@printf '%b\n' 'Test Targets (from test/Makefile):'
@$(MAKE) -C $(TEST_DIR) help | grep -A 100 "Targets:" | tail -n +2
# ============================================================================
# Tool Management
# ============================================================================
check-tools: ## Check if required tools are installed
@$(MAKE) -C $(TEST_DIR) check-tools
install-tools: ## Install required tools
@$(MAKE) -C $(TEST_DIR) install-tools
# ============================================================================
# Preparation & Validation
# ============================================================================
prepare: ## Prepare Cilium resources
@$(MAKE) -C $(TEST_DIR) prepare
validate: ## Validate Cilium configuration
@$(MAKE) -C $(TEST_DIR) validate
test-syntax: ## Test shell scripts syntax
@$(MAKE) -C $(TEST_DIR) test-syntax
# ============================================================================
# Testing
# ============================================================================
test-single: ## Run single cluster test
@$(MAKE) -C $(TEST_DIR) test-single
test-multi: ## Run multi-cluster test
@$(MAKE) -C $(TEST_DIR) test-multi
test-all: ## Run all tests
@$(MAKE) -C $(TEST_DIR) test-all
test: test-all ## Alias for test-all
# ============================================================================
# Cluster & Debug Utilities
# ============================================================================
status: ## Show status of current cluster
@$(MAKE) -C $(TEST_DIR) status
# ============================================================================
# Debug & Cleanup
# ============================================================================
logs: ## Show Cilium logs
@$(MAKE) -C $(TEST_DIR) logs
debug: ## Show debug information
@$(MAKE) -C $(TEST_DIR) debug
clean: ## Clean up all clusters
@$(MAKE) -C $(TEST_DIR) clean
# ============================================================================
# CI/CD Targets
# ============================================================================
ci-validate: check-tools test-syntax validate ## Run validation for CI
@printf '%b\n' "$(GREEN)✓ CI validation completed$(NC)"