master
Two citations were out of bounds against kubernetes/kubernetes HEAD: - delta_fifo.go:797-801 → 797-800 (DeletedFinalStateUnknown struct ends at line 800; file has 800 lines total, off-by-one) - kube_features.go:2798-2811 → 2771-2784 (init() function moved up ~27 lines; file now has 2784 lines, old citation was past EOF) Audited all 30 citations (28 OK, 2 fixed, 0 flagged for review).
Kubernetes Patterns
Production-scale Go patterns extracted from the Kubernetes source code with verified file:line citations.
Structure
patterns/— Kubernetes-specific patterns (controller, reconciler, informer, workqueue, scheme)comparison/— Go stdlib vs Kubernetes approachessmells/— Anti-patterns at scalechangelog/— Daily digest of merged Kubernetes PRs
Philosophy
These rules are derived from what the Kubernetes source code actually does, not opinions or blog posts. Every pattern cites specific files and line numbers.
Kubernetes shows what idiomatic Go looks like at scale — patterns that emerge only when a project hits millions of lines.
Languages
Markdown
100%