Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 15-Sep-2021 | - | ||||
.github/ | H | 15-Sep-2021 | - | 3 | 2 | |
cmd/ | H | 15-Sep-2021 | - | 13,547 | 9,767 | |
examples/ | H | 15-Sep-2021 | - | 20,154 | 12,234 | |
hack/ | H | 03-May-2022 | - | 104 | 55 | |
pkg/ | H | 15-Sep-2021 | - | 167 | 82 | |
third_party/forked/golang/ | H | 15-Sep-2021 | - | 143 | 113 | |
CONTRIBUTING.md | H A D | 15-Sep-2021 | 750 | 8 | 4 | |
LICENSE | H A D | 15-Sep-2021 | 11.1 KiB | 203 | 169 | |
OWNERS | H A D | 15-Sep-2021 | 184 | 14 | 12 | |
README.md | H A D | 15-Sep-2021 | 1.4 KiB | 25 | 16 | |
SECURITY_CONTACTS | H A D | 15-Sep-2021 | 550 | 17 | 15 | |
code-of-conduct.md | H A D | 15-Sep-2021 | 148 | 4 | 2 | |
generate-groups.sh | H A D | 15-Sep-2021 | 3.9 KiB | 96 | 58 | |
generate-internal-groups.sh | H A D | 15-Sep-2021 | 5.7 KiB | 123 | 85 | |
go.mod | H A D | 15-Sep-2021 | 1 KiB | 30 | 25 | |
go.sum | H A D | 15-Sep-2021 | 23.4 KiB | 248 | 247 | |
tools.go | H A D | 15-Sep-2021 | 1.2 KiB | 36 | 14 |
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