# kubernetes/code-generator

Generators for kube-like API types

Repository: https://github.com/kubernetes/code-generator
Canonical: https://ross.abutalabs.com/products/code-generator
Language: Go
License: Apache-2.0
License Family: permissive
Topics: k8s-staging
Last push: 2026-08-26T19:37:40+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3305, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1831, forks 443 (observed 2026-08-28T04:05:41.816932+00:00)

## What it is
Kubernetes' official Go code generators for building Kubernetes-style API types, producing typed clients, informers, listers, deepcopy functions, and conversion/defaulting code. It is a read-only staged repository synced from the main kubernetes/kubernetes repo.

## Use cases
- generate typed Go clients for my CustomResourceDefinition
- scaffold informers and listers for a Kubernetes controller
- generate deepcopy and conversion functions for API types
- build a Kubernetes-style API server with versioned clients
- write an operator without hand-writing client code

## When to choose
- you are developing Kubernetes CRDs or controllers in Go and need clients, informers, and listers
- you are building an aggregated API server following Kubernetes API conventions
- you want the canonical, upstream-supported code generation tooling for k8s-style APIs

## When to avoid
- you are not working with Kubernetes-style APIs or Go
- you want a general-purpose code generator unrelated to Kubernetes API machinery
- you need to file issues or contribute directly - contributions go to kubernetes/kubernetes

## Facets
- artifact type: library
- maturity: stable
- function: sdk, developer-tools
- domain: developer-tools, apis, cloud-computing
- platform: go, windows, cli
- tags: kubernetes, code-generator, custom-resource-definitions, client-go, informers, api-machinery, staged-repository, code-generation, containers, linux, macos

## Member repositories
- kubernetes/code-generator (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.816932+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:12.150048+00:00, confidence not recorded.
  - readme: https://github.com/kubernetes/code-generator (fetched 2026-08-28T04:05:41.816932+00:00, sha 8ac254706329)
- Data as of 2026-08-30T08:39:29.467469+00:00.
