kubernetes / k8s.io
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 483 files with 86,053 lines of code.
    • 5 very long files (62,674 lines of code)
    • 2 long files (1,085 lines of code)
    • 23 medium size files (6,810 lines of codeclsfd_ftr_w_mp_ins)
    • 22 small files (3,003 lines of code)
    • 431 very small files (12,481 lines of code)
72% | 1% | 7% | 3% | 14%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
yaml77% | 1% | 6% | 2% | 11%
go0% | 0% | 83% | 0% | 16%
py0% | 0% | 69% | 23% | 6%
tf0% | 0% | 7% | 14% | 77%
yml0% | 0% | 0% | 0% | 100%
rego0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
k8s.gcr.io91% | 2% | 1% | 1% | 3%
apps81% | 0% | 4% | 1% | 11%
infra16% | 0% | 26% | 11% | 44%
groups0% | 0% | 59% | 19% | 21%
dns0% | 0% | 47% | 38% | 14%
artifacts0% | 0% | 6% | 0% | 93%
artifactserver0% | 0% | 0% | 0% | 100%
registry.k8s.io0% | 0% | 0% | 0% | 100%
images0% | 0% | 0% | 0% | 100%
policy0% | 0% | 0% | 0% | 100%
hack0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
images.yaml
in k8s.gcr.io/archived/images/DO-NOT-MODIFY-legacy-backfill
33390 -
bad-domains-configmap.yaml
in apps/slack-infra/resources/slackin
15493 -
cert-manager.yaml
in apps/cert-manager
6457 -
images.yaml
in k8s.gcr.io/images/k8s-staging-kubernetes
6141 -
audit.viewer.yaml
in infra/gcp/bash/roles
1193 -
images.yaml
in k8s.gcr.io/images/k8s-staging-build-image
575 -
images.yaml
in k8s.gcr.io/images/k8s-staging-kops
510 -
configmap.yaml
in apps/triageparty-release
433 -
prow.viewer.yaml
in infra/gcp/bash/roles
427 -
groups.yaml
in groups/sig-release
421 -
service.go
in groups
409 17
container.deployer.yaml
in infra/gcp/bash/roles
403 -
test.py
in apps/k8s-io
402 39
reconcile.go
in groups
369 12
groups.yaml
in groups/sig-k8s-infra
324 -
images.yaml
in k8s.gcr.io/images/k8s-staging-dns
306 -
k8s.io._0_base.yaml
in dns/zone-configs
299 -
canary.k8s.io.yaml
in dns/zone-configs
299 -
infra.yaml
in infra/gcp
286 -
configmap-nginx.yaml
in apps/k8s-io
267 -
groups.yaml
in groups/sig-cluster-lifecycle
235 -
main.tf
in infra/gcp/terraform/modules/gke-cluster
233 -
boskos.yaml
in infra/gcp/terraform/k8s-infra-prow-build/prow-build/resources/test-pods
232 -
backfill.yaml
in artifacts/manifests/k8s-staging-cri-tools
229 -
restrictions.yaml
in groups
214 -
images.yaml
in k8s.gcr.io/images/k8s-staging-cluster-api
211 -
fake_client.go
in groups/fake
207 17
kubernetes-external-secrets_crd.yaml
in apps/kubernetes-external-secrets
202 -
kubernetes-external-secrets_crd.yaml
in infra/gcp/terraform/k8s-infra-prow-build/prow-build/resources/kubernetes-external-secrets
201 -
kubernetes-external-secrets_crd.yaml
in infra/gcp/terraform/k8s-infra-prow-build-trusted/prow-build-trusted/resources/kubernetes-external-secrets
201 -
images.yaml
in k8s.gcr.io/images/k8s-staging-autoscaling
192 -
groups.yaml
in groups/sig-testing
187 -
boskos-resources-configmap.yaml
in infra/gcp/terraform/k8s-infra-prow-build/prow-build/resources/test-pods
181 -
groups.yaml
in groups/sig-contributor-experience
180 -
canary.kubernetes.io.yaml
in dns/zone-configs
172 -
kubernetes.io._0_base.yaml
in dns/zone-configs
172 -
images.yaml
in k8s.gcr.io/images/k8s-staging-sig-storage
163 -
check-zone.py
in dns
138 9
groups.yaml
in groups/sig-architecture
127 -
main.tf
in infra/gcp/terraform/k8s-infra-public-pii
125 -
k8s-triage.tf
in infra/gcp/terraform/kubernetes-public
124 -
groups.yaml
in groups
123 -
k8s-infra-prow.tf
in infra/gcp/terraform/kubernetes-public
119 -
deck_deployment.yaml
in apps/prow/cluster
117 -
groups.yaml
in groups/sig-network
117 -
test-pods-externalsecrets.yaml
in infra/gcp/terraform/k8s-infra-prow-build-trusted/prow-build-trusted/resources/test-pods
116 -
test-pods-serviceaccounts.yaml
in infra/gcp/terraform/k8s-infra-prow-build-trusted/prow-build-trusted/resources/test-pods
112 -
prow_controller_manager_rbac.yaml
in apps/prow/cluster
112 -
images.yaml
in k8s.gcr.io/images/k8s-staging-kube-state-metrics
110 -
sinker_rbac.yaml
in apps/prow/cluster
108 -
Files With Most Units (Top 7)
File# lines# units
test.py
in apps/k8s-io
402 39
fake_client.go
in groups/fake
207 17
service.go
in groups
409 17
client.go
in groups
96 14
reconcile.go
in groups
369 12
check-zone.py
in dns
138 9
main.go
in artifactserver/cmd/artifactserver
100 4
Files With Long Lines (Top 20)

There are 30 files with lines longer than 120 characters. In total, there are 354 long lines.

File# lines# units# long lines
images.yaml
in k8s.gcr.io/archived/images/DO-NOT-MODIFY-legacy-backfill
33390 - 228
cert-manager.yaml
in apps/cert-manager
6457 - 46
configmap-nginx.yaml
in apps/k8s-io
267 - 15
backup_images_expected.yaml
in infra/gcp/bash/backup_tools
9 - 9
rego
deprecations.rego
in policy
42 - 8
test.py
in apps/k8s-io
402 39 6
message.yaml
in apps/slack-infra/resources/slack-welcomer
28 - 6
prowjob-buckets.tf
in infra/gcp/terraform/kubernetes-public
38 - 3
variables.tf
in infra/gcp/terraform/modules/workload-identity-service-account
44 - 3
config.yaml
in apps/prow
100 - 3
k8s-infra-prow.tf
in infra/gcp/terraform/kubernetes-public
119 - 2
variables.tf
in infra/gcp/terraform/modules/gke-cluster
62 - 2
variables.tf
in infra/gcp/terraform/modules/gke-nodepool
76 - 2
images.yaml
in k8s.gcr.io/images/k8s-staging-releng
40 - 2
images.yaml
in k8s.gcr.io/images/k8s-staging-artifact-promoter
72 - 2
fake_client.go
in groups/fake
207 17 2
service.go
in groups
409 17 2
variables.tf
in infra/gcp/terraform/kubernetes-public
100 - 1
main.tf
in infra/gcp/terraform/k8s-infra-prow-build-trusted
53 - 1
main.tf
in infra/gcp/terraform/modules/workload-identity-service-account
46 - 1