How aathith/kubesort works
Main Components
a) User Interface Layer:
• Command-line interface (CLI) component
• Input parser for kubesort commands
b) Core Processing Layer:
• Command formatter
• kubectl wrapper
• Sorting logic handler
c) Integration Layer:
• kubectl interface
• Kubernetes API interaction
┌─────────────────────────────────────────┐
• User Terminal │
• ┘
• ↓
┌─────────────────────────────────────────┐
• KUBESORT CLI Interface │
• ┌─────────────┐ ┌─────────────┐ │
• Command Parser│ │Input Validator│ │
• ┘ └─────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Core Processing Layer │
• ┌─────────────┐ ┌─────────────┐ │
• Sort Logic │ │Command │ │
• Handler │ │Formatter │ │
• ┘ └─────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Integration Layer │
• ┌─────────────┐ ┌─────────────┐ │
• kubectl │ │Kubernetes │ │
• wrapper │ → │API │ │
• ┘ └─────────────┘ │
• ┘
Important Elements to Highlight
a) Supported Resource Types:
• Pods
• Deployments
• Services
b) Sorting Options:
• Namespace filtering capabilities
Additional Notes
• Version compatibility information (k8s v1.18.1, kubectl v1.18.1, bash v4.4.20)
Technical Details
• Bash script environment requirement
• POSIX compatibility note
• Installation path (/usr/local/bin/kubesort)
• Command syntax patterns