• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Sep-2021-

.github/H15-Sep-2021-32

cmd/H15-Sep-2021-13,5479,767

examples/H15-Sep-2021-20,15412,234

hack/H03-May-2022-10455

pkg/H15-Sep-2021-16782

third_party/forked/golang/H15-Sep-2021-143113

CONTRIBUTING.mdH A D15-Sep-2021750 84

LICENSEH A D15-Sep-202111.1 KiB203169

OWNERSH A D15-Sep-2021184 1412

README.mdH A D15-Sep-20211.4 KiB2516

SECURITY_CONTACTSH A D15-Sep-2021550 1715

code-of-conduct.mdH A D15-Sep-2021148 42

generate-groups.shH A D15-Sep-20213.9 KiB9658

generate-internal-groups.shH A D15-Sep-20215.7 KiB12385

go.modH A D15-Sep-20211 KiB3025

go.sumH A D15-Sep-202123.4 KiB248247

tools.goH A D15-Sep-20211.2 KiB3614

README.md

1# code-generator
2
3Golang code-generators used to implement [Kubernetes-style API types](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md).
4
5## Purpose
6
7These code-generators can be used
8- in the context of [CustomResourceDefinition](https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/) to build native, versioned clients,
9  informers and other helpers
10- in the context of [User-provider API Servers](https://github.com/kubernetes/apiserver) to build conversions between internal and versioned types, defaulters, protobuf codecs,
11  internal and versioned clients and informers.
12
13## Resources
14- The example [sample controller](https://github.com/kubernetes/sample-controller) shows a code example of a controller that uses the clients, listers and informers generated by this library.
15- The article [Kubernetes Deep Dive: Code Generation for CustomResources](https://blog.openshift.com/kubernetes-deep-dive-code-generation-customresources/) gives a step by step instruction on how to use this library.
16
17## Compatibility
18
19HEAD of this repo will match HEAD of k8s.io/apiserver, k8s.io/apimachinery, and k8s.io/client-go.
20
21## Where does it come from?
22
23`code-generator` is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/code-generator.
24Code changes are made in that location, merged into `k8s.io/kubernetes` and later synced here.
25