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

..03-May-2022-

cmd/H06-Oct-2020-

code-generator-0.16.8/H31-Jan-2020-

pkg/H06-Oct-2020-

third_party/forked/golang/reflect/H06-Oct-2020-

CONTRIBUTING.mdH A D06-Oct-2020750

LICENSEH A D06-Oct-202011.1 KiB

OWNERSH A D06-Oct-2020184

README.mdH A D06-Oct-20201.4 KiB

SECURITY_CONTACTSH A D06-Oct-2020563

code-of-conduct.mdH A D06-Oct-2020148

generate-groups.shH A D06-Oct-20203.7 KiB

generate-internal-groups.shH A D06-Oct-20205.7 KiB

go.modH A D06-Oct-2020964

go.sumH A D06-Oct-202012.9 KiB

tools.goH A D06-Oct-20201.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