Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 2.16 KB

File metadata and controls

57 lines (46 loc) · 2.16 KB

Crane Development Guide

This directory contains detailed guides for developers contributing to Crane.

Guides

Quick Reference

# Build
go build -o crane main.go

# Test
go test ./...

# Lint
gofmt -l .

Project Structure

crane/
├── cmd/                    # CLI command implementations
│   ├── apply/              # crane apply
│   ├── export/             # crane export
│   ├── transform/          # crane transform
│   ├── validate/           # crane validate
│   ├── transfer-pvc/       # crane transfer-pvc
│   └── ...
├── internal/               # Internal packages
│   ├── apply/              # Kustomize apply logic
│   ├── kustomize/          # Embedded kustomize runner (krusty API)
│   ├── transform/          # Orchestrator, stages, writer
│   ├── validate/           # Scanner, matcher, report
│   ├── file/               # File helper utilities
│   ├── flags/              # Global CLI flags
│   └── plugin/             # Plugin loading and execution
├── e2e-tests/              # End-to-end tests
│   ├── framework/          # Test framework utilities
│   ├── tests/              # Test cases
│   ├── golden-manifests/   # Expected output fixtures
│   └── utils/              # Test helper utilities
└── docs/                   # Documentation

Related Repositories