-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable scaffolding behaviour #1004
Comments
we're working on a plugin system to address some stuff like this. It currently takes "the universe" of the scaffolding and gets to output it's own version of "the universe", so it should address this situation. For instance, you could just have the crossplane plugin that drops the controller (or scaffolds out something with your own types) and sets up your testing setup. |
The initial pieces just went in -- see the plans and discussion in #943 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind feature
Recently a discussion about desired testing practices began in #952. It was pointed out that kubebuilder is inherently opinionated, and that these opinions extend to testing patterns. This is a reasonable approach; kubebuilder cannot be all things to all people.
In the Crossplane project we use kubebuilder and friends to avoid reinventing various wheels that are required to build Kubernetes controllers. We love kubebuilder and agree with most - but not all - of its decisions. When projects disagree with parts of kubebuilder they can simply scaffold out what they need and remove or change the rest. This is feasible when a small set of contributors are scaffolding and adding new types, but I worry that it doesn't scale.
We've recently added a developer guide for Crossplane API types and controllers that effectively states "use kubebuilder to scaffold your types", but there are a few exceptions:
--controller=false
flag to avoid generating a controller scaffold, since we provide a set of baked in types that satisfyReconciler
.I'm still catching up with the changes in 0.2, but it seems like 1. implies 2 today. There's a general theme here though in that it would be really nice to be able to opt out of certain kubebuilder patterns as a project without depending on contributors reading documentation and learning that they need to pass in certain flags. Perhaps this would look like a
.kubebuilder
config file that encodes preferences like--controller=false
at a project level.The text was updated successfully, but these errors were encountered: