repowisekedacore/http-add-on

Architecture of kedacore/http-add-on

kedacore/http-add-on is 224 source files holding 1,051 symbols across 8 modules, written mainly in Go, Shell, Makefile. The largest module is pkg, with 51 files, and 6 files are entry points into the dependency graph.

How http-add-on fits together

http-add-on is split into separate modules, each with its own entry point: interceptor/main.go, operator/main.go and scaler/main.go. The interceptor module, with its entry point in interceptor/main.go, handles incoming HTTP traffic. The operator module, whose entry point is operator/main.go, includes operator/controllers/http/app.go and handles the Kubernetes side of the setup. The scaler module, with its entry point in scaler/main.go, supplies the scaling signal that KEDA acts on. The pkg directory holds the largest share of shared code, including pkg/http/server.go, which is an entry point for the HTTP serving code.

Largest modules

  • pkg: 51 files and 3,962 lines of code
  • interceptor: 44 files and 3,530 lines of code
  • config: 26 files
  • operator: 23 files and 1,574 lines of code
  • .github: 19 files
  • test: 15 files and 1,200 lines of code
  • root: 12 files
  • scaler: 11 files and 2,181 lines of code

Languages

By file count: Go 152 files, Shell 2 files, Makefile 1 file.

More on http-add-on: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos