How salesforce/sloop works
Main Components
a) Kubernetes Cluster Integration Layer:
• Kubernetes API server connection
• Kubewatcher component (from pkg/sloop/ingress/kubewatcher.go)
• Kubeextractor component (from pkg/sloop/kubeextractor/)
b) Data Processing Layer:
• Processing components (from pkg/sloop/processing/)
• Event counting and resource summary generation
• Watch activity tracking
c) Storage Layer:
• BadgerDB integration (from pkg/sloop/store/untyped/badgerwrap/)
• Both typed and untyped storage components
• Store manager component (from pkg/sloop/storemanager/)
d) Web Interface Layer:
• Webserver component (from pkg/sloop/webserver/)
• Query handling system (from pkg/sloop/queries/)
• Visualization components
Component Relationships
• Kubernetes Cluster → Ingress Layer (watching events)
• Ingress Layer → Processing Layer (event processing)
• Processing Layer → Storage Layer (data persistence)
• Storage Layer → Query Layer (data retrieval)
• Query Layer → Web Interface (visualization)
b) Control Flow:
• Configuration management flow
• Backup/restore paths
• Monitoring/metrics flow to Prometheus
Technical Details
a) Infrastructure Components:
• Docker container boundary
• Kubernetes deployment context
• Prometheus metrics integration
b) Data Stores:
• BadgerDB storage with LSM tree configuration
• Memory management components
• Backup/restore mechanisms