aws / amazon-vpc-cni-k8s
Components & Dependencies

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (33 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure (relative to the source code root), with automatically defined folder depth to have at least 10 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 33 components.
  • 154 files, 26,632 lines of code (64.9% vs. main code).
  • "config/master" is biggest, containing 25.7% of code.
  • "pkg/version" is smallest, containing 0.08% of code.


config/master6845 LOC (16%) 12 files
charts/aws-calico5115 LOC (12%) 30 files
pkg/ipamd3247 LOC (7%) 6 files
pkg/awsutils2612 LOC (6%) 6 files
config/multus1736 LOC (4%) 8 files
pkg/networkutils1029 LOC (2%) 3 files
cmd/routed-eni-cni-plugin851 LOC (2%) 4 files
rpc708 LOC (1%) 3 files
cmd/cni-metrics-helper661 LOC (1%) 4 files
charts/aws-vpc-cni560 LOC (1%) 11 files
pkg/utils433 LOC (1%) 9 files
pkg/netlinkwrapper418 LOC (1%) 5 files
cmd/egress-v4-cni-plugin363 LOC (<1%) 2 files
pkg/ec2wrapper335 LOC (<1%) 4 files
pkg/publisher212 LOC (<1%) 2 files
scripts182 LOC (<1%) 1 files
pkg/eniconfig144 LOC (<1%) 3 files
charts/cni-metrics-helper140 LOC (<1%) 7 files
cmd/grpc-health-probe115 LOC (<1%) 1 files
pkg/ec2metadatawrapper110 LOC (<1%) 3 files
pkg/cri110 LOC (<1%) 3 files
pkg/apis107 LOC (<1%) 3 files
pkg/k8sapi81 LOC (<1%) 1 files
pkg/cninswrapper72 LOC (<1%) 2 files
pkg/procsyswrapper66 LOC (<1%) 3 files
pkg/typeswrapper60 LOC (<1%) 3 files
rpc/mocks55 LOC (<1%) 1 files
pkg/grpcwrapper52 LOC (<1%) 3 files
pkg/ipwrapper50 LOC (<1%) 3 files
pkg/rpcwrapper48 LOC (<1%) 3 files
cmd/aws-k8s-agent48 LOC (<1%) 1 files
pkg/nswrapper47 LOC (<1%) 3 files
pkg/version20 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-31 14:49