@zimezone/z-command 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -38
- package/dist/cli.js +14 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts +1 -7
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +101 -23
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts +11 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +88 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/platforms.d.ts +21 -0
- package/dist/platforms.d.ts.map +1 -0
- package/dist/platforms.js +137 -0
- package/dist/platforms.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/package.json +13 -5
- package/templates/agents/api-documenter.agent.md +161 -0
- package/templates/agents/architect-review.agent.md +146 -0
- package/templates/agents/arm-cortex-expert.agent.md +288 -0
- package/templates/agents/backend-architect.agent.md +309 -0
- package/templates/agents/backend-security-coder.agent.md +152 -0
- package/templates/agents/bash-pro.agent.md +285 -0
- package/templates/agents/c-pro.agent.md +35 -0
- package/templates/agents/c4-code.agent.md +320 -0
- package/templates/agents/c4-component.agent.md +227 -0
- package/templates/agents/c4-container.agent.md +248 -0
- package/templates/agents/c4-context.agent.md +235 -0
- package/templates/agents/conductor-validator.agent.md +245 -0
- package/templates/agents/csharp-pro.agent.md +38 -0
- package/templates/agents/customer-support.agent.md +148 -0
- package/templates/agents/database-admin.agent.md +142 -0
- package/templates/agents/database-architect.agent.md +238 -0
- package/templates/agents/database-optimizer.agent.md +144 -0
- package/templates/agents/debugger.agent.md +30 -0
- package/templates/agents/deployment-engineer.agent.md +0 -0
- package/templates/agents/devops-troubleshooter.agent.md +138 -0
- package/templates/agents/django-pro.agent.md +159 -0
- package/templates/agents/docs-architect.agent.md +77 -0
- package/templates/agents/dotnet-architect.agent.md +175 -0
- package/templates/agents/dx-optimizer.agent.md +63 -0
- package/templates/agents/elixir-pro.agent.md +38 -0
- package/templates/agents/error-detective.agent.md +32 -0
- package/templates/agents/event-sourcing-architect.agent.md +42 -0
- package/templates/agents/fastapi-pro.agent.md +171 -0
- package/templates/agents/firmware-analyst.agent.md +330 -0
- package/templates/agents/frontend-security-coder.agent.md +149 -0
- package/templates/agents/haskell-pro.agent.md +37 -0
- package/templates/agents/hr-pro.agent.md +105 -0
- package/templates/agents/incident-responder.agent.md +190 -0
- package/templates/agents/ios-developer.agent.md +198 -0
- package/templates/agents/java-pro.agent.md +156 -0
- package/templates/agents/javascript-pro.agent.md +35 -0
- package/templates/agents/julia-pro.agent.md +187 -0
- package/templates/agents/legal-advisor.agent.md +49 -0
- package/templates/agents/malware-analyst.agent.md +272 -0
- package/templates/agents/mermaid-expert.agent.md +39 -0
- package/templates/agents/minecraft-bukkit-pro.agent.md +104 -0
- package/templates/agents/mobile-security-coder.agent.md +163 -0
- package/templates/agents/monorepo-architect.agent.md +44 -0
- package/templates/agents/observability-engineer.agent.md +228 -0
- package/templates/agents/performance-engineer.agent.md +167 -0
- package/templates/agents/php-pro.agent.md +43 -0
- package/templates/agents/posix-shell-pro.agent.md +284 -0
- package/templates/agents/quant-analyst.agent.md +32 -0
- package/templates/agents/reference-builder.agent.md +167 -0
- package/templates/agents/reverse-engineer.agent.md +202 -0
- package/templates/agents/risk-manager.agent.md +41 -0
- package/templates/agents/ruby-pro.agent.md +35 -0
- package/templates/agents/rust-pro.agent.md +156 -0
- package/templates/agents/sales-automator.agent.md +35 -0
- package/templates/agents/scala-pro.agent.md +60 -0
- package/templates/agents/search-specialist.agent.md +59 -0
- package/templates/agents/security-auditor.agent.md +138 -0
- package/templates/agents/seo-authority-builder.agent.md +116 -0
- package/templates/agents/seo-cannibalization-detector.agent.md +103 -0
- package/templates/agents/seo-content-auditor.agent.md +63 -0
- package/templates/agents/seo-content-planner.agent.md +88 -0
- package/templates/agents/seo-content-refresher.agent.md +98 -0
- package/templates/agents/seo-content-writer.agent.md +76 -0
- package/templates/agents/seo-keyword-strategist.agent.md +75 -0
- package/templates/agents/seo-meta-optimizer.agent.md +72 -0
- package/templates/agents/seo-snippet-hunter.agent.md +94 -0
- package/templates/agents/seo-structure-architect.agent.md +88 -0
- package/templates/agents/service-mesh-expert.agent.md +41 -0
- package/templates/agents/sql-pro.agent.md +146 -0
- package/templates/agents/tdd-orchestrator.agent.md +183 -0
- package/templates/agents/temporal-python-pro.agent.md +349 -0
- package/templates/agents/terraform-specialist.agent.md +137 -0
- package/templates/agents/test-automator.agent.md +203 -0
- package/templates/agents/threat-modeling-expert.agent.md +44 -0
- package/templates/agents/tutorial-engineer.agent.md +118 -0
- package/templates/agents/ui-ux-designer.agent.md +188 -0
- package/templates/agents/ui-visual-validator.agent.md +192 -0
- package/templates/agents/vector-database-engineer.agent.md +43 -0
- package/templates/skills/angular-migration/SKILL.md +410 -0
- package/templates/skills/api-design-principles/SKILL.md +528 -0
- package/templates/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/templates/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/templates/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/templates/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/templates/skills/architecture-decision-records/SKILL.md +428 -0
- package/templates/skills/architecture-patterns/SKILL.md +494 -0
- package/templates/skills/async-python-patterns/SKILL.md +694 -0
- package/templates/skills/auth-implementation-patterns/SKILL.md +634 -0
- package/templates/skills/changelog-automation/SKILL.md +552 -0
- package/templates/skills/code-review-excellence/SKILL.md +520 -0
- package/templates/skills/competitive-landscape/SKILL.md +479 -0
- package/templates/skills/context-driven-development/SKILL.md +385 -0
- package/templates/skills/cost-optimization/SKILL.md +274 -0
- package/templates/skills/cqrs-implementation/SKILL.md +554 -0
- package/templates/skills/data-quality-frameworks/SKILL.md +587 -0
- package/templates/skills/data-storytelling/SKILL.md +453 -0
- package/templates/skills/database-migration/SKILL.md +424 -0
- package/templates/skills/dbt-transformation-patterns/SKILL.md +561 -0
- package/templates/skills/debugging-strategies/SKILL.md +527 -0
- package/templates/skills/defi-protocol-templates/SKILL.md +454 -0
- package/templates/skills/dependency-upgrade/SKILL.md +409 -0
- package/templates/skills/deployment-pipeline-design/SKILL.md +359 -0
- package/templates/skills/distributed-tracing/SKILL.md +438 -0
- package/templates/skills/dotnet-backend-patterns/SKILL.md +815 -0
- package/templates/skills/dotnet-backend-patterns/assets/repository-template.cs +523 -0
- package/templates/skills/dotnet-backend-patterns/assets/service-template.cs +336 -0
- package/templates/skills/dotnet-backend-patterns/references/dapper-patterns.md +544 -0
- package/templates/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +355 -0
- package/templates/skills/e2e-testing-patterns/SKILL.md +547 -0
- package/templates/skills/employment-contract-templates/SKILL.md +507 -0
- package/templates/skills/error-handling-patterns/SKILL.md +636 -0
- package/templates/skills/event-store-design/SKILL.md +437 -0
- package/templates/skills/fastapi-templates/SKILL.md +567 -0
- package/templates/skills/git-advanced-workflows/SKILL.md +400 -0
- package/templates/skills/github-actions-templates/SKILL.md +333 -0
- package/templates/skills/go-concurrency-patterns/SKILL.md +655 -0
- package/templates/skills/grafana-dashboards/SKILL.md +369 -0
- package/templates/skills/helm-chart-scaffolding/SKILL.md +544 -0
- package/templates/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/templates/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/templates/skills/helm-chart-scaffolding/references/chart-structure.md +500 -0
- package/templates/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/templates/skills/javascript-testing-patterns/SKILL.md +1025 -0
- package/templates/skills/langchain-architecture/SKILL.md +338 -0
- package/templates/skills/llm-evaluation/SKILL.md +471 -0
- package/templates/skills/microservices-patterns/SKILL.md +595 -0
- package/templates/skills/modern-javascript-patterns/SKILL.md +911 -0
- package/templates/skills/monorepo-management/SKILL.md +622 -0
- package/templates/skills/nextjs-app-router-patterns/SKILL.md +544 -0
- package/templates/skills/nodejs-backend-patterns/SKILL.md +1020 -0
- package/templates/skills/nx-workspace-patterns/SKILL.md +452 -0
- package/templates/skills/openapi-spec-generation/SKILL.md +1028 -0
- package/templates/skills/paypal-integration/SKILL.md +467 -0
- package/templates/skills/pci-compliance/SKILL.md +466 -0
- package/templates/skills/postgresql/SKILL.md +204 -0
- package/templates/skills/projection-patterns/SKILL.md +490 -0
- package/templates/skills/prometheus-configuration/SKILL.md +392 -0
- package/templates/skills/prompt-engineering-patterns/SKILL.md +201 -0
- package/templates/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/templates/skills/prompt-engineering-patterns/assets/prompt-template-library.md +246 -0
- package/templates/skills/prompt-engineering-patterns/references/chain-of-thought.md +399 -0
- package/templates/skills/prompt-engineering-patterns/references/few-shot-learning.md +369 -0
- package/templates/skills/prompt-engineering-patterns/references/prompt-optimization.md +414 -0
- package/templates/skills/prompt-engineering-patterns/references/prompt-templates.md +470 -0
- package/templates/skills/prompt-engineering-patterns/references/system-prompts.md +189 -0
- package/templates/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/templates/skills/python-packaging/SKILL.md +870 -0
- package/templates/skills/python-performance-optimization/SKILL.md +869 -0
- package/templates/skills/python-testing-patterns/SKILL.md +907 -0
- package/templates/skills/rag-implementation/SKILL.md +403 -0
- package/templates/skills/react-modernization/SKILL.md +513 -0
- package/templates/skills/react-native-architecture/SKILL.md +671 -0
- package/templates/skills/react-state-management/SKILL.md +429 -0
- package/templates/skills/risk-metrics-calculation/SKILL.md +555 -0
- package/templates/skills/rust-async-patterns/SKILL.md +517 -0
- package/templates/skills/secrets-management/SKILL.md +346 -0
- package/templates/skills/security-requirement-extraction/SKILL.md +677 -0
- package/templates/skills/shellcheck-configuration/SKILL.md +454 -0
- package/templates/skills/similarity-search-patterns/SKILL.md +558 -0
- package/templates/skills/slo-implementation/SKILL.md +329 -0
- package/templates/skills/sql-optimization-patterns/SKILL.md +493 -0
- package/templates/skills/stripe-integration/SKILL.md +442 -0
- package/templates/skills/tailwind-design-system/SKILL.md +666 -0
- package/templates/skills/temporal-python-testing/SKILL.md +158 -0
- package/templates/skills/temporal-python-testing/resources/integration-testing.md +455 -0
- package/templates/skills/temporal-python-testing/resources/local-setup.md +553 -0
- package/templates/skills/temporal-python-testing/resources/replay-testing.md +462 -0
- package/templates/skills/temporal-python-testing/resources/unit-testing.md +328 -0
- package/templates/skills/terraform-module-library/SKILL.md +249 -0
- package/templates/skills/terraform-module-library/references/aws-modules.md +63 -0
- package/templates/skills/threat-mitigation-mapping/SKILL.md +745 -0
- package/templates/skills/track-management/SKILL.md +593 -0
- package/templates/skills/typescript-advanced-types/SKILL.md +717 -0
- package/templates/skills/ui-ux-pro-max/SKILL.md +352 -0
- package/templates/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/templates/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/templates/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/templates/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/templates/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/templates/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/templates/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/templates/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/templates/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/templates/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/templates/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/templates/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/templates/skills/ui-ux-pro-max/scripts/core.py +258 -0
- package/templates/skills/ui-ux-pro-max/scripts/design_system.py +547 -0
- package/templates/skills/ui-ux-pro-max/scripts/search.py +76 -0
- package/templates/skills/uv-package-manager/SKILL.md +831 -0
- package/templates/skills/vector-index-tuning/SKILL.md +521 -0
- package/templates/skills/wcag-audit-patterns/SKILL.md +555 -0
- package/templates/skills/workflow-orchestration-patterns/SKILL.md +316 -0
- package/templates/skills/workflow-patterns/SKILL.md +623 -0
- package/templates/agents/game-developer.agent.md +0 -57
- package/templates/agents/kubernetes-specialist.agent.md +0 -56
- package/templates/agents/market-researcher.agent.md +0 -47
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
CHART_DIR="${1:-.}"
|
|
5
|
+
RELEASE_NAME="test-release"
|
|
6
|
+
|
|
7
|
+
echo "═══════════════════════════════════════════════════════"
|
|
8
|
+
echo " Helm Chart Validation"
|
|
9
|
+
echo "═══════════════════════════════════════════════════════"
|
|
10
|
+
echo ""
|
|
11
|
+
|
|
12
|
+
# Colors
|
|
13
|
+
GREEN='\033[0;32m'
|
|
14
|
+
YELLOW='\033[1;33m'
|
|
15
|
+
RED='\033[0;31m'
|
|
16
|
+
NC='\033[0m' # No Color
|
|
17
|
+
|
|
18
|
+
success() {
|
|
19
|
+
echo -e "${GREEN}✓${NC} $1"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
warning() {
|
|
23
|
+
echo -e "${YELLOW}⚠${NC} $1"
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
error() {
|
|
27
|
+
echo -e "${RED}✗${NC} $1"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
# Check if Helm is installed
|
|
31
|
+
if ! command -v helm &> /dev/null; then
|
|
32
|
+
error "Helm is not installed"
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
echo "📦 Chart directory: $CHART_DIR"
|
|
37
|
+
echo ""
|
|
38
|
+
|
|
39
|
+
# 1. Check chart structure
|
|
40
|
+
echo "1️⃣ Checking chart structure..."
|
|
41
|
+
if [ ! -f "$CHART_DIR/Chart.yaml" ]; then
|
|
42
|
+
error "Chart.yaml not found"
|
|
43
|
+
exit 1
|
|
44
|
+
fi
|
|
45
|
+
success "Chart.yaml exists"
|
|
46
|
+
|
|
47
|
+
if [ ! -f "$CHART_DIR/values.yaml" ]; then
|
|
48
|
+
error "values.yaml not found"
|
|
49
|
+
exit 1
|
|
50
|
+
fi
|
|
51
|
+
success "values.yaml exists"
|
|
52
|
+
|
|
53
|
+
if [ ! -d "$CHART_DIR/templates" ]; then
|
|
54
|
+
error "templates/ directory not found"
|
|
55
|
+
exit 1
|
|
56
|
+
fi
|
|
57
|
+
success "templates/ directory exists"
|
|
58
|
+
echo ""
|
|
59
|
+
|
|
60
|
+
# 2. Lint the chart
|
|
61
|
+
echo "2️⃣ Linting chart..."
|
|
62
|
+
if helm lint "$CHART_DIR"; then
|
|
63
|
+
success "Chart passed lint"
|
|
64
|
+
else
|
|
65
|
+
error "Chart failed lint"
|
|
66
|
+
exit 1
|
|
67
|
+
fi
|
|
68
|
+
echo ""
|
|
69
|
+
|
|
70
|
+
# 3. Check Chart.yaml
|
|
71
|
+
echo "3️⃣ Validating Chart.yaml..."
|
|
72
|
+
CHART_NAME=$(grep "^name:" "$CHART_DIR/Chart.yaml" | awk '{print $2}')
|
|
73
|
+
CHART_VERSION=$(grep "^version:" "$CHART_DIR/Chart.yaml" | awk '{print $2}')
|
|
74
|
+
APP_VERSION=$(grep "^appVersion:" "$CHART_DIR/Chart.yaml" | awk '{print $2}' | tr -d '"')
|
|
75
|
+
|
|
76
|
+
if [ -z "$CHART_NAME" ]; then
|
|
77
|
+
error "Chart name not found"
|
|
78
|
+
exit 1
|
|
79
|
+
fi
|
|
80
|
+
success "Chart name: $CHART_NAME"
|
|
81
|
+
|
|
82
|
+
if [ -z "$CHART_VERSION" ]; then
|
|
83
|
+
error "Chart version not found"
|
|
84
|
+
exit 1
|
|
85
|
+
fi
|
|
86
|
+
success "Chart version: $CHART_VERSION"
|
|
87
|
+
|
|
88
|
+
if [ -z "$APP_VERSION" ]; then
|
|
89
|
+
warning "App version not specified"
|
|
90
|
+
else
|
|
91
|
+
success "App version: $APP_VERSION"
|
|
92
|
+
fi
|
|
93
|
+
echo ""
|
|
94
|
+
|
|
95
|
+
# 4. Test template rendering
|
|
96
|
+
echo "4️⃣ Testing template rendering..."
|
|
97
|
+
if helm template "$RELEASE_NAME" "$CHART_DIR" > /dev/null 2>&1; then
|
|
98
|
+
success "Templates rendered successfully"
|
|
99
|
+
else
|
|
100
|
+
error "Template rendering failed"
|
|
101
|
+
helm template "$RELEASE_NAME" "$CHART_DIR"
|
|
102
|
+
exit 1
|
|
103
|
+
fi
|
|
104
|
+
echo ""
|
|
105
|
+
|
|
106
|
+
# 5. Dry-run installation
|
|
107
|
+
echo "5️⃣ Testing dry-run installation..."
|
|
108
|
+
if helm install "$RELEASE_NAME" "$CHART_DIR" --dry-run --debug > /dev/null 2>&1; then
|
|
109
|
+
success "Dry-run installation successful"
|
|
110
|
+
else
|
|
111
|
+
error "Dry-run installation failed"
|
|
112
|
+
exit 1
|
|
113
|
+
fi
|
|
114
|
+
echo ""
|
|
115
|
+
|
|
116
|
+
# 6. Check for required Kubernetes resources
|
|
117
|
+
echo "6️⃣ Checking generated resources..."
|
|
118
|
+
MANIFESTS=$(helm template "$RELEASE_NAME" "$CHART_DIR")
|
|
119
|
+
|
|
120
|
+
if echo "$MANIFESTS" | grep -q "kind: Deployment"; then
|
|
121
|
+
success "Deployment found"
|
|
122
|
+
else
|
|
123
|
+
warning "No Deployment found"
|
|
124
|
+
fi
|
|
125
|
+
|
|
126
|
+
if echo "$MANIFESTS" | grep -q "kind: Service"; then
|
|
127
|
+
success "Service found"
|
|
128
|
+
else
|
|
129
|
+
warning "No Service found"
|
|
130
|
+
fi
|
|
131
|
+
|
|
132
|
+
if echo "$MANIFESTS" | grep -q "kind: ServiceAccount"; then
|
|
133
|
+
success "ServiceAccount found"
|
|
134
|
+
else
|
|
135
|
+
warning "No ServiceAccount found"
|
|
136
|
+
fi
|
|
137
|
+
echo ""
|
|
138
|
+
|
|
139
|
+
# 7. Check for security best practices
|
|
140
|
+
echo "7️⃣ Checking security best practices..."
|
|
141
|
+
if echo "$MANIFESTS" | grep -q "runAsNonRoot: true"; then
|
|
142
|
+
success "Running as non-root user"
|
|
143
|
+
else
|
|
144
|
+
warning "Not explicitly running as non-root"
|
|
145
|
+
fi
|
|
146
|
+
|
|
147
|
+
if echo "$MANIFESTS" | grep -q "readOnlyRootFilesystem: true"; then
|
|
148
|
+
success "Using read-only root filesystem"
|
|
149
|
+
else
|
|
150
|
+
warning "Not using read-only root filesystem"
|
|
151
|
+
fi
|
|
152
|
+
|
|
153
|
+
if echo "$MANIFESTS" | grep -q "allowPrivilegeEscalation: false"; then
|
|
154
|
+
success "Privilege escalation disabled"
|
|
155
|
+
else
|
|
156
|
+
warning "Privilege escalation not explicitly disabled"
|
|
157
|
+
fi
|
|
158
|
+
echo ""
|
|
159
|
+
|
|
160
|
+
# 8. Check for resource limits
|
|
161
|
+
echo "8️⃣ Checking resource configuration..."
|
|
162
|
+
if echo "$MANIFESTS" | grep -q "resources:"; then
|
|
163
|
+
if echo "$MANIFESTS" | grep -q "limits:"; then
|
|
164
|
+
success "Resource limits defined"
|
|
165
|
+
else
|
|
166
|
+
warning "No resource limits defined"
|
|
167
|
+
fi
|
|
168
|
+
if echo "$MANIFESTS" | grep -q "requests:"; then
|
|
169
|
+
success "Resource requests defined"
|
|
170
|
+
else
|
|
171
|
+
warning "No resource requests defined"
|
|
172
|
+
fi
|
|
173
|
+
else
|
|
174
|
+
warning "No resources defined"
|
|
175
|
+
fi
|
|
176
|
+
echo ""
|
|
177
|
+
|
|
178
|
+
# 9. Check for health probes
|
|
179
|
+
echo "9️⃣ Checking health probes..."
|
|
180
|
+
if echo "$MANIFESTS" | grep -q "livenessProbe:"; then
|
|
181
|
+
success "Liveness probe configured"
|
|
182
|
+
else
|
|
183
|
+
warning "No liveness probe found"
|
|
184
|
+
fi
|
|
185
|
+
|
|
186
|
+
if echo "$MANIFESTS" | grep -q "readinessProbe:"; then
|
|
187
|
+
success "Readiness probe configured"
|
|
188
|
+
else
|
|
189
|
+
warning "No readiness probe found"
|
|
190
|
+
fi
|
|
191
|
+
echo ""
|
|
192
|
+
|
|
193
|
+
# 10. Check dependencies
|
|
194
|
+
if [ -f "$CHART_DIR/Chart.yaml" ] && grep -q "^dependencies:" "$CHART_DIR/Chart.yaml"; then
|
|
195
|
+
echo "🔟 Checking dependencies..."
|
|
196
|
+
if helm dependency list "$CHART_DIR" > /dev/null 2>&1; then
|
|
197
|
+
success "Dependencies valid"
|
|
198
|
+
|
|
199
|
+
if [ -f "$CHART_DIR/Chart.lock" ]; then
|
|
200
|
+
success "Chart.lock file present"
|
|
201
|
+
else
|
|
202
|
+
warning "Chart.lock file missing (run 'helm dependency update')"
|
|
203
|
+
fi
|
|
204
|
+
else
|
|
205
|
+
error "Dependencies check failed"
|
|
206
|
+
fi
|
|
207
|
+
echo ""
|
|
208
|
+
fi
|
|
209
|
+
|
|
210
|
+
# 11. Check for values schema
|
|
211
|
+
if [ -f "$CHART_DIR/values.schema.json" ]; then
|
|
212
|
+
echo "1️⃣1️⃣ Validating values schema..."
|
|
213
|
+
success "values.schema.json present"
|
|
214
|
+
|
|
215
|
+
# Validate schema if jq is available
|
|
216
|
+
if command -v jq &> /dev/null; then
|
|
217
|
+
if jq empty "$CHART_DIR/values.schema.json" 2>/dev/null; then
|
|
218
|
+
success "values.schema.json is valid JSON"
|
|
219
|
+
else
|
|
220
|
+
error "values.schema.json contains invalid JSON"
|
|
221
|
+
exit 1
|
|
222
|
+
fi
|
|
223
|
+
fi
|
|
224
|
+
echo ""
|
|
225
|
+
fi
|
|
226
|
+
|
|
227
|
+
# Summary
|
|
228
|
+
echo "═══════════════════════════════════════════════════════"
|
|
229
|
+
echo " Validation Complete!"
|
|
230
|
+
echo "═══════════════════════════════════════════════════════"
|
|
231
|
+
echo ""
|
|
232
|
+
echo "Chart: $CHART_NAME"
|
|
233
|
+
echo "Version: $CHART_VERSION"
|
|
234
|
+
if [ -n "$APP_VERSION" ]; then
|
|
235
|
+
echo "App Version: $APP_VERSION"
|
|
236
|
+
fi
|
|
237
|
+
echo ""
|
|
238
|
+
success "All validations passed!"
|
|
239
|
+
echo ""
|
|
240
|
+
echo "Next steps:"
|
|
241
|
+
echo " • helm package $CHART_DIR"
|
|
242
|
+
echo " • helm install my-release $CHART_DIR"
|
|
243
|
+
echo " • helm test my-release"
|
|
244
|
+
echo ""
|