aws / amazon-network-policy-controller-k8s
File Size

The distribution of size of files (measured in lines of code).

Intro
Learn more...
File Size Overall
0% | 0% | 21% | 33% | 44%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 0% | 32% | 31% | 36%
yaml0% | 0% | 0% | 43% | 56%
py0% | 0% | 0% | 0% | 100%
tpl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg0% | 0% | 45% | 19% | 34%
charts0% | 0% | 0% | 63% | 36%
api0% | 0% | 0% | 74% | 25%
config0% | 0% | 0% | 24% | 75%
cmd0% | 0% | 0% | 100% | 0%
internal0% | 0% | 0% | 30% | 69%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
endpoints.go
in pkg/resolvers
448 17
manager.go
in pkg/policyendpoints
386 13
177 18
rbac.yaml
in charts/amazon-network-policy-controller-k8s/templates
165 -
159 -
crds.yaml
in charts/amazon-network-policy-controller-k8s/crds
154 -
main.go
in cmd
150 4
policies_for_pod.go
in pkg/resolvers
132 4
120 6
policy_controller.go
in internal/controllers
119 7
runtime_config.go
in pkg/config
111 4
policies_for_service.go
in pkg/resolvers
98 3
policy_tracker.go
in pkg/resolvers
81 7
78 3
pod_utils.go
in pkg/k8s
75 4
pod.go
in internal/eventhandlers
73 6
70 5
role.yaml
in config/rbac
69 -
namespace.go
in internal/eventhandlers
67 6
finalizer.go
in pkg/k8s
66 4
service.go
in internal/eventhandlers
66 6
tpl
_helpers.tpl
in charts/amazon-network-policy-controller-k8s/templates
63 -
policy.go
in internal/eventhandlers
63 6
62 3
54 10
53 -
deployment.yaml
in charts/amazon-network-policy-controller-k8s/templates
51 -
51 1
values.yaml
in charts/amazon-network-policy-controller-k8s
44 -
43 1
controller.yaml
in config/controller
42 -
role_binding.yaml
in config/rbac
37 -
35 -
policies.go
in pkg/resolvers
35 4
30 -
26 -
auth_proxy_role.yaml
in config/rbac
24 -
monitor.yaml
in config/prometheus
24 -
21 -
configmap.go
in pkg/utils/configmap
20 2
19 -
18 -
16 -
16 -
webhook_in_policyendpoints.yaml
in config/crd/patches
15 -
Chart.yaml
in charts/amazon-network-policy-controller-k8s
13 -
indexer.go
in pkg/policyendpoints
12 1
serviceaccount.yaml
in charts/amazon-network-policy-controller-k8s/templates
11 -
groupversion_info.go
in api/v1alpha1
10 -
manager_config_patch.yaml
in config/default
10 -
Files With Most Units (Top 26)
File# lines# units
177 18
endpoints.go
in pkg/resolvers
448 17
manager.go
in pkg/policyendpoints
386 13
54 10
policy_tracker.go
in pkg/resolvers
81 7
policy_controller.go
in internal/controllers
119 7
120 6
pod.go
in internal/eventhandlers
73 6
service.go
in internal/eventhandlers
66 6
policy.go
in internal/eventhandlers
63 6
namespace.go
in internal/eventhandlers
67 6
70 5
runtime_config.go
in pkg/config
111 4
policies.go
in pkg/resolvers
35 4
policies_for_pod.go
in pkg/resolvers
132 4
pod_utils.go
in pkg/k8s
75 4
finalizer.go
in pkg/k8s
66 4
main.go
in cmd
150 4
78 3
policies_for_service.go
in pkg/resolvers
98 3
62 3
configmap.go
in pkg/utils/configmap
20 2
51 1
43 1
utils.go
in pkg/k8s
7 1
indexer.go
in pkg/policyendpoints
12 1
Files With Long Lines (Top 18)

There are 18 files with lines longer than 120 characters. In total, there are 106 long lines.

File# lines# units# long lines
endpoints.go
in pkg/resolvers
448 17 27
manager.go
in pkg/policyendpoints
386 13 25
pod.go
in internal/eventhandlers
73 6 6
service.go
in internal/eventhandlers
66 6 6
policy.go
in internal/eventhandlers
63 6 6
namespace.go
in internal/eventhandlers
67 6 6
policies.go
in pkg/resolvers
35 4 5
78 3 4
policies_for_service.go
in pkg/resolvers
98 3 4
policies_for_pod.go
in pkg/resolvers
132 4 4
62 3 3
70 5 3
crds.yaml
in charts/amazon-network-policy-controller-k8s/crds
154 - 2
120 6 1
runtime_config.go
in pkg/config
111 4 1
pod_utils.go
in pkg/k8s
75 4 1
policy_controller.go
in internal/controllers
119 7 1
main.go
in cmd
150 4 1
Correlations

File Size vs. Commits (all time): 59 points

pkg/config/runtime_config.go x: 12 commits (all time) y: 111 lines of code pkg/policyendpoints/manager.go x: 23 commits (all time) y: 386 lines of code pkg/resolvers/endpoints.go x: 21 commits (all time) y: 448 lines of code cmd/main.go x: 16 commits (all time) y: 150 lines of code pkg/config/controller_config.go x: 4 commits (all time) y: 43 lines of code pkg/k8s/pod_utils.go x: 6 commits (all time) y: 75 lines of code pkg/k8s/service_utils.go x: 5 commits (all time) y: 70 lines of code api/v1alpha1/zz_generated.deepcopy.go x: 10 commits (all time) y: 177 lines of code api/v1alpha1/policyendpoint_types.go x: 9 commits (all time) y: 51 lines of code config/crd/bases/networking.k8s.aws_policyendpoints.yaml x: 12 commits (all time) y: 159 lines of code config/rbac/role.yaml x: 8 commits (all time) y: 69 lines of code internal/eventhandlers/namespace.go x: 5 commits (all time) y: 67 lines of code internal/eventhandlers/pod.go x: 5 commits (all time) y: 73 lines of code internal/eventhandlers/policy.go x: 7 commits (all time) y: 63 lines of code internal/controllers/policy_controller.go x: 8 commits (all time) y: 119 lines of code scripts/lib/verify_test_results.py x: 5 commits (all time) y: 78 lines of code charts/amazon-network-policy-controller-k8s/crds/crds.yaml x: 5 commits (all time) y: 154 lines of code config/default/manager_auth_proxy_patch.yaml x: 4 commits (all time) y: 53 lines of code charts/amazon-network-policy-controller-k8s/Chart.yaml x: 2 commits (all time) y: 13 lines of code charts/amazon-network-policy-controller-k8s/templates/_helpers.tpl x: 2 commits (all time) y: 63 lines of code charts/amazon-network-policy-controller-k8s/templates/deployment.yaml x: 2 commits (all time) y: 51 lines of code charts/amazon-network-policy-controller-k8s/templates/rbac.yaml x: 2 commits (all time) y: 165 lines of code charts/amazon-network-policy-controller-k8s/templates/serviceaccount.yaml x: 2 commits (all time) y: 11 lines of code charts/amazon-network-policy-controller-k8s/values.yaml x: 2 commits (all time) y: 44 lines of code pkg/resolvers/policies_for_service.go x: 4 commits (all time) y: 98 lines of code pkg/resolvers/policy_tracker.go x: 3 commits (all time) y: 81 lines of code config/controller/controller.yaml x: 2 commits (all time) y: 42 lines of code pkg/resolvers/policies.go x: 2 commits (all time) y: 35 lines of code pkg/resolvers/policies_for_pod.go x: 2 commits (all time) y: 132 lines of code pkg/policyendpoints/indexer.go x: 1 commits (all time) y: 12 lines of code pkg/version/version_info.go x: 1 commits (all time) y: 6 lines of code config/controller/kustomization.yaml x: 1 commits (all time) y: 8 lines of code config/crd/kustomization.yaml x: 2 commits (all time) y: 5 lines of code config/default/kustomization.yaml x: 2 commits (all time) y: 9 lines of code config/prometheus/monitor.yaml x: 2 commits (all time) y: 24 lines of code config/rbac/auth_proxy_role_binding.yaml x: 2 commits (all time) y: 19 lines of code config/rbac/auth_proxy_service.yaml x: 2 commits (all time) y: 21 lines of code config/rbac/kustomization.yaml x: 2 commits (all time) y: 6 lines of code config/rbac/role_binding.yaml x: 2 commits (all time) y: 37 lines of code pkg/resolvers/policies_for_namespace.go x: 1 commits (all time) y: 62 lines of code pkg/config/configmap_manager.go x: 1 commits (all time) y: 120 lines of code pkg/k8s/configmap_store.go x: 1 commits (all time) y: 54 lines of code pkg/utils/configmap/configmap.go x: 1 commits (all time) y: 20 lines of code pkg/k8s/finalizer.go x: 1 commits (all time) y: 66 lines of code config/crd/kustomizeconfig.yaml x: 1 commits (all time) y: 16 lines of code config/crd/patches/webhook_in_policyendpoints.yaml x: 1 commits (all time) y: 15 lines of code config/prometheus/kustomization.yaml x: 1 commits (all time) y: 2 lines of code config/rbac/auth_proxy_role.yaml x: 1 commits (all time) y: 24 lines of code config/rbac/policyendpoint_editor_role.yaml x: 1 commits (all time) y: 30 lines of code config/rbac/policyendpoint_viewer_role.yaml x: 1 commits (all time) y: 26 lines of code
448.0
lines of code
  min: 2.0
  average: 65.08
  25th percentile: 15.0
  median: 43.0
  75th percentile: 75.0
  max: 448.0
0 23.0
commits (all time)
min: 1.0 | average: 4.0 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 5.0 | max: 23.0

File Size vs. Contributors (all time): 59 points

pkg/config/runtime_config.go x: 5 contributors (all time) y: 111 lines of code pkg/policyendpoints/manager.go x: 4 contributors (all time) y: 386 lines of code pkg/resolvers/endpoints.go x: 6 contributors (all time) y: 448 lines of code cmd/main.go x: 7 contributors (all time) y: 150 lines of code pkg/config/controller_config.go x: 3 contributors (all time) y: 43 lines of code pkg/k8s/pod_utils.go x: 3 contributors (all time) y: 75 lines of code pkg/k8s/service_utils.go x: 3 contributors (all time) y: 70 lines of code api/v1alpha1/zz_generated.deepcopy.go x: 6 contributors (all time) y: 177 lines of code api/v1alpha1/policyendpoint_types.go x: 5 contributors (all time) y: 51 lines of code config/crd/bases/networking.k8s.aws_policyendpoints.yaml x: 5 contributors (all time) y: 159 lines of code config/rbac/role.yaml x: 5 contributors (all time) y: 69 lines of code internal/eventhandlers/namespace.go x: 4 contributors (all time) y: 67 lines of code internal/eventhandlers/pod.go x: 3 contributors (all time) y: 73 lines of code internal/eventhandlers/policy.go x: 4 contributors (all time) y: 63 lines of code internal/controllers/policy_controller.go x: 3 contributors (all time) y: 119 lines of code scripts/lib/verify_test_results.py x: 2 contributors (all time) y: 78 lines of code charts/amazon-network-policy-controller-k8s/crds/crds.yaml x: 4 contributors (all time) y: 154 lines of code config/default/manager_auth_proxy_patch.yaml x: 2 contributors (all time) y: 53 lines of code charts/amazon-network-policy-controller-k8s/Chart.yaml x: 2 contributors (all time) y: 13 lines of code charts/amazon-network-policy-controller-k8s/templates/_helpers.tpl x: 2 contributors (all time) y: 63 lines of code charts/amazon-network-policy-controller-k8s/templates/deployment.yaml x: 2 contributors (all time) y: 51 lines of code charts/amazon-network-policy-controller-k8s/templates/rbac.yaml x: 2 contributors (all time) y: 165 lines of code charts/amazon-network-policy-controller-k8s/templates/serviceaccount.yaml x: 2 contributors (all time) y: 11 lines of code charts/amazon-network-policy-controller-k8s/values.yaml x: 2 contributors (all time) y: 44 lines of code pkg/resolvers/policies_for_service.go x: 3 contributors (all time) y: 98 lines of code pkg/resolvers/policy_tracker.go x: 3 contributors (all time) y: 81 lines of code config/controller/controller.yaml x: 2 contributors (all time) y: 42 lines of code pkg/resolvers/policies.go x: 2 contributors (all time) y: 35 lines of code pkg/resolvers/policies_for_pod.go x: 2 contributors (all time) y: 132 lines of code pkg/policyendpoints/indexer.go x: 1 contributors (all time) y: 12 lines of code pkg/version/version_info.go x: 1 contributors (all time) y: 6 lines of code config/controller/kustomization.yaml x: 1 contributors (all time) y: 8 lines of code config/crd/kustomization.yaml x: 1 contributors (all time) y: 5 lines of code config/default/kustomization.yaml x: 1 contributors (all time) y: 9 lines of code config/prometheus/monitor.yaml x: 1 contributors (all time) y: 24 lines of code config/rbac/auth_proxy_role_binding.yaml x: 1 contributors (all time) y: 19 lines of code config/rbac/auth_proxy_service.yaml x: 1 contributors (all time) y: 21 lines of code config/rbac/leader_election_role.yaml x: 1 contributors (all time) y: 35 lines of code config/rbac/role_binding.yaml x: 1 contributors (all time) y: 37 lines of code pkg/resolvers/policies_for_namespace.go x: 1 contributors (all time) y: 62 lines of code pkg/config/configmap_manager.go x: 1 contributors (all time) y: 120 lines of code pkg/k8s/configmap_store.go x: 1 contributors (all time) y: 54 lines of code pkg/k8s/finalizer.go x: 1 contributors (all time) y: 66 lines of code config/crd/kustomizeconfig.yaml x: 1 contributors (all time) y: 16 lines of code config/crd/patches/webhook_in_policyendpoints.yaml x: 1 contributors (all time) y: 15 lines of code config/prometheus/kustomization.yaml x: 1 contributors (all time) y: 2 lines of code config/rbac/policyendpoint_editor_role.yaml x: 1 contributors (all time) y: 30 lines of code config/rbac/policyendpoint_viewer_role.yaml x: 1 contributors (all time) y: 26 lines of code
448.0
lines of code
  min: 2.0
  average: 65.08
  25th percentile: 15.0
  median: 43.0
  75th percentile: 75.0
  max: 448.0
0 7.0
contributors (all time)
min: 1.0 | average: 2.22 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 7.0

File Size vs. Commits (30 days): 1 points

pkg/config/runtime_config.go x: 1 commits (30d) y: 111 lines of code
111.0
lines of code
  min: 111.0
  average: 111.0
  25th percentile: 111.0
  median: 111.0
  75th percentile: 111.0
  max: 111.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (30 days): 1 points

pkg/config/runtime_config.go x: 1 contributors (30d) y: 111 lines of code
111.0
lines of code
  min: 111.0
  average: 111.0
  25th percentile: 111.0
  median: 111.0
  75th percentile: 111.0
  max: 111.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (90 days): 8 points

pkg/config/runtime_config.go x: 8 commits (90d) y: 111 lines of code pkg/policyendpoints/manager.go x: 2 commits (90d) y: 386 lines of code pkg/resolvers/endpoints.go x: 2 commits (90d) y: 448 lines of code cmd/main.go x: 4 commits (90d) y: 150 lines of code pkg/config/controller_config.go x: 3 commits (90d) y: 43 lines of code pkg/k8s/pod_utils.go x: 5 commits (90d) y: 75 lines of code pkg/k8s/service_utils.go x: 3 commits (90d) y: 70 lines of code api/v1alpha1/zz_generated.deepcopy.go x: 2 commits (90d) y: 177 lines of code
448.0
lines of code
  min: 43.0
  average: 182.5
  25th percentile: 71.25
  median: 130.5
  75th percentile: 333.75
  max: 448.0
0 8.0
commits (90d)
min: 2.0 | average: 3.63 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 4.75 | max: 8.0

File Size vs. Contributors (90 days): 8 points

pkg/config/runtime_config.go x: 2 contributors (90d) y: 111 lines of code pkg/policyendpoints/manager.go x: 2 contributors (90d) y: 386 lines of code pkg/resolvers/endpoints.go x: 2 contributors (90d) y: 448 lines of code cmd/main.go x: 2 contributors (90d) y: 150 lines of code pkg/config/controller_config.go x: 2 contributors (90d) y: 43 lines of code pkg/k8s/pod_utils.go x: 2 contributors (90d) y: 75 lines of code pkg/k8s/service_utils.go x: 2 contributors (90d) y: 70 lines of code api/v1alpha1/zz_generated.deepcopy.go x: 1 contributors (90d) y: 177 lines of code
448.0
lines of code
  min: 43.0
  average: 182.5
  25th percentile: 71.25
  median: 130.5
  75th percentile: 333.75
  max: 448.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.88 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0