pkg/vendor/k8s.io/code-generator
Victor Agababov b09a159e12
Add BucketSet type which implements consistent bucketing (#1477)
* Add BucketSet type which implements consistent bucketing

BucketSet permits mapping keys to buckets in a consistent manner, permitting us to use this type
in the HA applications. BucketSet implements the Bucket interface so it can be used in reconciler/leaderelection
pieces and has an additional method which returns the owner for the key. This is necessary in autoscaler
where requests need to be forwarded to an appropriate autoscaler.

* git mod stuff

* fixes

* nit

* two types for two thigns

* more tests
2020-07-12 20:16:12 -07:00
..
cmd bump k8s packages to 1.17.6 (#1285) 2020-05-27 10:37:59 -07:00
pkg Update our dependency on K8s libs to 1.15.3 (#686) 2019-09-18 13:36:48 -07:00
third_party/forked/golang/reflect Update to the 1.11 client libraries. (#38) 2018-08-06 09:54:11 -07:00
CONTRIBUTING.md Update our dependency on K8s libs to 1.15.3 (#686) 2019-09-18 13:36:48 -07:00
LICENSE Move the logging packages from serving into pkg. (#21) 2018-07-27 09:53:35 -07:00
README.md Update our dependency on K8s libs to 1.15.3 (#686) 2019-09-18 13:36:48 -07:00
SECURITY_CONTACTS Bump k8s vendor to 1.16.4 (#972) 2020-01-06 13:17:50 -08:00
code-of-conduct.md Move the logging packages from serving into pkg. (#21) 2018-07-27 09:53:35 -07:00
generate-groups.sh Add BucketSet type which implements consistent bucketing (#1477) 2020-07-12 20:16:12 -07:00
generate-internal-groups.sh Switch to Go modules (#1179) 2020-04-28 12:43:51 -07:00
go.mod bump k8s packages to 1.17.6 (#1285) 2020-05-27 10:37:59 -07:00
go.sum bump k8s packages to 1.17.6 (#1285) 2020-05-27 10:37:59 -07:00
tools.go Bump k8s vendor to 1.16.4 (#972) 2020-01-06 13:17:50 -08:00

README.md

code-generator

Golang code-generators used to implement Kubernetes-style API types.

Purpose

These code-generators can be used

  • in the context of CustomResourceDefinition to build native, versioned clients, informers and other helpers
  • in the context of User-provider API Servers to build conversions between internal and versioned types, defaulters, protobuf codecs, internal and versioned clients and informers.

Resources

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/k8s.io/code-generator. Code changes are made in that location, merged into k8s.io/kubernetes and later synced here.