https://github.com/ducesoft/code-generator
Generators for kube-like API types
https://github.com/ducesoft/code-generator
Last synced: 6 months ago
JSON representation
Generators for kube-like API types
- Host: GitHub
- URL: https://github.com/ducesoft/code-generator
- Owner: ducesoft
- License: apache-2.0
- Fork: true (kubernetes/code-generator)
- Created: 2020-12-30T12:31:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T20:56:06.000Z (over 5 years ago)
- Last Synced: 2024-06-20T13:28:54.220Z (about 2 years ago)
- Language: Go
- Size: 9.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
- Security: SECURITY_CONTACTS
Awesome Lists containing this project
README
# code-generator
Golang code-generators used to implement [Kubernetes-style API types](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md).
## Purpose
These code-generators can be used
- in the context of [CustomResourceDefinition](https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/) to build native, versioned clients,
informers and other helpers
- in the context of [User-provider API Servers](https://github.com/kubernetes/apiserver) to build conversions between internal and versioned types, defaulters, protobuf codecs,
internal and versioned clients and informers.
## Resources
- 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.
- 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.
## Compatibility
HEAD of this repo will match HEAD of k8s.io/apiserver, k8s.io/apimachinery, and k8s.io/client-go.
## Where does it come from?
`code-generator` is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/github.com/ducesoft/code-generator.
Code changes are made in that location, merged into `k8s.io/kubernetes` and later synced here.