controller-tools
controller-tools copied to clipboard
Tools to use with the controller-runtime libraries
We have CEL expressions that are more than 700 characters long and completely unreadable due to the fact that they have to be defined as one single long line. We...
Hi, everyone! I did a mistake deleting "conf" folder, when I executed "make manifests" again, It didn't create all resources that I needed, for example, It doesn't create the ServicesAccount...
Afaik the kubebuilder docs are autogenerated from this repo. I would like to improve the docs about `UniqueItems` https://book.kubebuilder.io/reference/markers/crd-validation.html#crd-validation I get: > Forbidden: uniqueItems cannot be set to true since...
Hello :) We’re working with kubebuilder and came across an annotation like the following: ``` // Deprecated: Use ClusterLabelSelectors instead // +kubebuilder:deprecatedversion:warning="ClusterGroupUpgradeSpec.ClusterSelector is deprecated, use ClusterLabelSelectors instead" ``` While this...
We have two packages/groups defined in our APIs directory. There is a struct with the same name in each; one of which is intended to generate a CRD, and one...
commad: `controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." ` go version: 1.21.12 controller-gen version: - 0.9.2 - 0.10.0 - 0.11.0 - .... - 0.17.0 ```controller-gen v0.4.1 - v0.8.0 is ok``` ``` panic: interface conversion:...
As per issue #933, it seems to be beneficial to support upstream `+enum` validation marker that infers enum members for a type from constant declarations of that type. So, given...
The `go` tool ignores directories that begin with "." or "_", as directories named "testdata", (see [here](https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns), first occurrence of "ignored by the go tool"). It looks like controller-gen isn't...
I have a struct with this annotation. Note the backtick in the pattern ``` // +kubebuilder:validation:items:Pattern=^[`a-zA-Z]+$ ``` When generating the manifests I get this error `literal not terminated (at :1:3)`
In #818 support for generating ApplyConfiguration was added via the applyconfiguration generator. However, it uses different variable name (`SchemeGroupVersion`) than the name generated by kubebuilder (`GroupVersion`). This results in a...