controller-tools
controller-tools copied to clipboard
Tools to use with the controller-runtime libraries
Hi everyone - I would like to generate a CRD that includes the 'title' key, but I'm unable to find a marker that allows me to generate it - I...
This feature adds resource field-scoped fields. ## Why? While working on [Google Managed Service for Prometheus](https://github.com/GoogleCloudPlatform/prometheus-engine), we identified a need to have namespaced and cluster-scoped versions of the same structs....
This PR strips comments from the generated CRDs for clarity of the public API documentation. The change aligns controller-tools with Kubernetes conventions for type descriptions: - Line that only contains...
Randomly-generated tmpdirs used as outputs for CRD gen can trip up the options parser in this repo: ``` Error: unable to parse option \"output:crd:dir=./tmp.08cAgAZQNm/chart/crds\": [invalid digit '8' in octal literal...
controller-gen treats the file as a package, which causes error. This command works in v0.7.0. I think it's due to https://github.com/kubernetes-sigs/controller-tools/pull/663 Specifically this part https://github.com/kubernetes-sigs/controller-tools/pull/663/files#diff-19effe657639f31c4b607076be411e82add5f6cc176fc7c26555020ff9663cbdR562
There is a convention in Kubernetes to use `---` separator in comment of a type to signify that the rest of the comment is not part of the description. See...
This integrates the upstream applyconfig generator into controller-tools to allow generation of ApplyConfig style types from custom API types. The aim here is to provide the pointer style structs that...
So I believe I exposed a bug in kubebuilder... when I define a +kubebuilder:default={} as a pointer to another type with +kubebuilder:default values I assume those values should propagate to...
When you have a type `intstr.IntOrString` with possible `validation:Enum=1,2,"foo","bar"` the enum validation is not generated at the crd yaml.
when schemapatch with types contain float32/float64, it output these attenions ``` .../types.go:207:23: found float, the usage of which is highly discouraged, as support for them varies across languages. Please consider...