How kong/deck works
Main Components Identification
a) Core Command Components (cmd/)
• Configuration Management Commands
• Gateway Management Commands
• Konnect Integration Commands
b) Conversion Components (convert/, kong2kic/, kong2tf/)
• Kong to Kubernetes Ingress Controller converter
• Kong to Terraform converter
• General format converter
c) Validation Layer (validate/)
• Configuration validator
• Konnect compatibility checker
d) Integration Layer (tests/integration/)
• Kong Gateway interface
• Konnect interface
┌─────────────────────────────────────────────────────────────┐
• decK CLI │
• ┬─────────────────┬────────────────┬─────────┘
┌───────────────▼───┐ ┌───────▼──────┐ ┌─────▼─────────┐
• Command Layer │ │ Convert Layer │ │ Validate Layer│
• Sync │ │ - Kong2KIC │ │ - Schema │
• Diff │ │ - Kong2TF │ │ - Compatibility│
• Dump │ │ - Format │ │ │
• ┬────────┘ └──────┬───────┘ └───────────────┘
┌─────────▼────────────────────▼───────────────────────┐
• Integration Layer │
• Kong Gateway Interface │
• Konnect Interface │
• ┬───────────────────────────┘
┌─────────────────────────▼───────────────────────────┐
• External Systems │
• Kong Gateway │
• Kong Konnect │
• Kubernetes │
• Terraform │
• ┘
Data Flow Indicators
• Configuration file input/output
• API calls to Kong/Konnect
• Conversion processes
• Validation flows
Important Details
• File formats supported (YAML)
• Integration points with Kong Gateway
• Conversion capabilities
• Validation rules
• Command operations (sync, diff, dump)
Notes for Implementation
• Clear separation between local operations and external system interactions
• Declarative nature of the tool
• Version compatibility information
• Parallel operation capabilities