Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
cmd/ | H | 06-Oct-2020 | - | |||
code-generator-0.16.8/ | H | 31-Jan-2020 | - | |||
pkg/ | H | 06-Oct-2020 | - | |||
third_party/forked/golang/reflect/ | H | 06-Oct-2020 | - | |||
CONTRIBUTING.md | H A D | 06-Oct-2020 | 750 | |||
LICENSE | H A D | 06-Oct-2020 | 11.1 KiB | |||
OWNERS | H A D | 06-Oct-2020 | 184 | |||
README.md | H A D | 06-Oct-2020 | 1.4 KiB | |||
SECURITY_CONTACTS | H A D | 06-Oct-2020 | 563 | |||
code-of-conduct.md | H A D | 06-Oct-2020 | 148 | |||
generate-groups.sh | H A D | 06-Oct-2020 | 3.7 KiB | |||
generate-internal-groups.sh | H A D | 06-Oct-2020 | 5.7 KiB | |||
go.mod | H A D | 06-Oct-2020 | 964 | |||
go.sum | H A D | 06-Oct-2020 | 12.9 KiB | |||
tools.go | H A D | 06-Oct-2020 | 1.2 KiB |
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