-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Feature Request: support "empty" group for API resources, i.e. with group == domain #1404
Comments
@DirectXMan12 @mengqiy @droot @camilamacedo86 what do you think about this? Should we implement this feature. |
Hi @hypnoglow, Let's see if I understood your RFE.
Then, what you are asking here is the tool allows:
Which means that
However, the above command would gen: apiVersion: my.domain.my.domain/v1
kind: Guestbook Which shows not the expected result and you are looking for : apiVersion: my.domain/v1
kind: Guestbook
Shows that k8s API allows we enable and disable Groups. See https://kubernetes.io/docs/concepts/overview/kubernetes-api/#enabling-api-groups PS.: tks @Adirio tks for your help to understand what @hypnoglow is looking for here too. |
Regarding multi-group, we just would need to use a well-known directory name, such as "core" (following k8s). Would be nice if we could make Regarding the GVK stored in the config file, I would just not store it as that will be clar enough and reading and writting will be easy to implement, just requiring a |
/approve on what @Adirio said |
I don't know about the feasability of the |
|
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. |
Wanted to show my support for this issue. As one of the developers behind the Jaeger and OpenTelemetry Operators, we are stuck with the Operator SDK 0.18.x until a guidance is provided for this issue here. EDIT: the |
There is a messy workaround for this though, right? Something like:
Does that break something? Maybe it precludes a "core" group AND APIs under subdomain groups? |
I ended up doing something similar: I generated it with |
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. |
/remove-lifecycle rotten |
FYI, I think this is largely just waiting for someone to implement. /good-first-issue |
@DirectXMan12: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed 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. |
/assign |
✨ Added support for empty group in kubebuilder api creation with v3+ #1404
I would like to see kubebuilder support creating APIs with empty groups. By that I mean that the actual
apiVersion
of CRD to bedomain/version
without additional group prefix.I think this can be very helpful for controllers/operators with a very narrow scope and a small number of
Kind
-s fitting into single "root" group.Consider popular examples, such as cert-manager or jaeger-operator:
In this examples there is no "groups" in terms of kubebuilder, and one group in terms of Kubernetes resource (for kubebuilder it is
group == domain
). And for many such cases it would be desirable to design APIs in a similar simple way./kind feature
The text was updated successfully, but these errors were encountered: