controller-tools
controller-tools copied to clipboard
Tools to use with the controller-runtime libraries
## Description Add paths description on how to specify multiple paths. ## Motivation
If you follow https://book.kubebuilder.io/quick-start.html, then patch `api/v1/cronjob_types.go` with the following changes: ```diff diff --git api/v1/cronjob_types.go api/v1/cronjob_types.go index 4ec4590..56d9a58 100644 --- api/v1/cronjob_types.go +++ api/v1/cronjob_types.go @@ -30,6 +30,30 @@ type CronJobSpec struct...
## Overview I would love it if controller-gen allowed you to use `map[string]interface{}` types in CRD fields, specifically those marked with: `// +kubebuilder:pruning:PreserveUnknownFields`. The use case is when you have...
`controller-gen crd` puts `TODO` in imported descriptions which don't appear in Kubernetes descriptions. For example, [corev1.LocalObjectReference](https://github.com/kubernetes/kubernetes/blob/v1.23.0/staging/src/k8s.io/api/core/v1/types.go#L5606-L5612) has a `TODO` on its one Name field. This type is embedded in [corev1.ConfigMapEnvSource](https://github.com/kubernetes/kubernetes/blob/v1.23.0/staging/src/k8s.io/api/core/v1/types.go#L2088),...
➜ demo-operator git:(master) ✗ k apply -f config/samples/apps_v1beta1_mydaemonset.yaml Error from server (InternalError): error when creating "config/samples/apps_v1beta1_mydaemonset.yaml": Internal error occurred: failed calling webhook "mmydaemonset.kb.io": failed to call webhook: Post "[https://demo-operator-webhook-service.demo-operator-system.svc:443/mutate-apps-cncamp-io-v1beta1-mydaemonset?timeout=10s](https://demo-operator-webhook-service.demo-operator-system.svc/mutate-apps-cncamp-io-v1beta1-mydaemonset?timeout=10s)": x509:...
Generate Apply clients for use with server side apply. For built in types, a hard coded mapping is done to point to the `client-go/applyconfiguration` types. For CRDs, we assume applyconfigurations...
Support api-approved annotation for CRD with k8s group fixes #656
This PR adds a new CLI tool named `crd-linter` which will lint/run checks against CRD resources and their corresponding schema. Initially this includes just 4 linters to check for: *...
## Overview Continuing from bug report #533 which was likely fixed and then resurfaced. Using controller-gen `v0.6.2` you get an error when using `json.RawMessage` to represent unstructured fields. (As a...
It is quite easy to do this accidentally, and then it is non-obvious why the changes you are making do not work. See, e.g. https://github.com/kubernetes-sigs/controller-tools/issues/650