openai / kubernetes
Static Component Dependencies

An overview of static code dependencies among source code logical components.

Intro

Static code dependencies refer to the relationships between different modules, libraries, or components in a software system that are established at compile-time rather than at runtime. These dependencies are determined by the code itself, meaning that one module directly references another through imports, includes, or explicit references in the code. Examples include:

  • Library and Module Imports
  • Class Dependencies (Inheritance & Composition)
  • Function and Method Calls
  • Dependency Injection Without Runtime Resolution
Learn more...
  • To learn more about good practices on componentization and dependencies, Sokrates recommends the following resources:
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (8 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Component Sizes (Lines of Code)
The "primary" logical decomposition has 8 components.
  • 7,208 files, 729,974 LOC (55.8% vs. main code).
  • "staging" is biggest, containing 59.08% of LOC.
  • ".github" is smallest, containing 0.03% of LOC.


staging431238 LOC (32%) 4,731 files
pkg236624 LOC (18%) 1,922 files
cmd38144 LOC (2%) 332 files
cluster13641 LOC (1%) 125 files
plugin7772 LOC (<1%) 75 files
hack1969 LOC (<1%) 13 files
build397 LOC (<1%) 6 files
.github189 LOC (<1%) 4 files
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 5 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 5 links contain 72 dependencies.
  • There is 1 place (2 links) with cyclic dependencies (20 file dependencies).
flowchart TB
    n0["plugin"]
    n1["cmd"]
    n2["pkg"]
    n3["hack"]
    n4[".github"]
    n5["staging"]
    n6["build"]
    n7["cluster"]
    n1 -->|"31"| n2
    n0 -->|"17"| n2
    n1 -->|"13"| n5
    n0 -->|"8"| n5
    n2 -->|"3"| n0
    classDef default fill:#808080,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    class n0,n1,n2,n3,n4,n5,n6,n7 highlighted;
    linkStyle 0 stroke:#00688bFF,stroke-width:10px
    linkStyle 1 stroke:#DC143CA5,stroke-width:5px
    linkStyle 2 stroke:#00688b93,stroke-width:4px
    linkStyle 3 stroke:#00688b70,stroke-width:2px
    linkStyle 4 stroke:#DC143C4C,stroke-width:1px



Download: Mermaid (.mmd) (open online Mermaid editor)

Open 2D force graph...
Open 3D force graph...

Show more details about dependencies...
From Component
 --> To Component
From Component
(files with dependencies)
Details
cmd
  --> pkg
31 files, 6566 LOC (17%)
31 source files
plugin
  --> pkg
17 files, 3390 LOC (43%)
17 source files
cmd
  --> staging
13 files, 3517 LOC (9%)
13 source files
plugin
  --> staging
8 files, 1648 LOC (21%)
8 source files
pkg
  --> plugin
3 files, 621 LOC (<1%)
3 source files







2026-06-24 10:55