controller-tools
controller-tools copied to clipboard
Tools to use with the controller-runtime libraries
This adds a field to the cronjob test data, that ensures that fields which are marked twice (once through a type marker, one through a field marker) still generate the...
In Crossplane, we have a single webhook server for core Crossplane controllers and an arbitrary number of webhooks deployed by the provider controllers. All of those are usual controller-runtime controllers...
It only show the first item of the array. Maybe we should support array type with custom separator, the default separator could be comma, e.g. "a,b,c".
I'm using the tools from the `crd` package to generate an OpenAPI Schema and noticed the following behaviour: * The Type of a field `X` is set through the validation...
rabbitmq's cluster-operator(https://github.com/rabbitmq/cluster-operator) and a lot of other operators use controller-gen to automatically generate their CRDs. For the `Quantity` field, controller-gen automatically generates the following JSON schema: ```yaml additionalProperties: anyOf: -...
controller-gen can't parse enum values starting with digit ``` package SamplePackage // +kubebuilder:validation:Enum=one;two;three;4abc type SampleType string ``` ``` # controller-gen crd:crdVersions=v1,trivialVersions=true paths="./tmp/..." tmp/x.go:4:1: expected comma, got "abc" (at :1:16) tmp/x.go:4:1:...
For kubernetes projects, if we want to use the `sig.k8s.io` group for CRDs, we need to provide the annotation `api-approved.kubernetes.io`. Otherwise, apiserver rejects the CRD. As a result, we have...
I can't even run `./test.sh` on a freshly checked out repo: ~~~shell $ git clone [email protected]:kubernetes-sigs/controller-tools.git $ cd controller-tools/ $ ./test.sh using tools fetching tools kubebuilder/ ... kubebuilder/bin/etcd setting up...
Signed-off-by: Adam Snyder ### Overview Closes #441 I added a new marker `kubebuilder:skipDescriptions`. When added to a field it skips adding property descriptions for all nested properties under that field,...
Opening this issue per the [Release Process](https://github.com/kubernetes-sigs/controller-tools/blob/master/RELEASE.md) to cut a new release of `controller-tools`. The latest release was cut _Jan-5_, the change log since then is as follows: https://github.com/kubernetes-sigs/controller-tools/compare/v0.8.0...master 