-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Come up with globally valid API groups #1073
Comments
Do we want separate issues for the other places we'll need to change (all label keys, all finalizers, the API group itself)? Or lump them all here? |
/priority important-soon |
@ncdc We can lump them all here. I'll update the issue. Can we enumerate the "bad" groups?
|
Anything |
Got it. Might providers be using these, too? I realize they'll define their own groups, but if they're using |
It's certainly possible. We could check all the CAP* repos in kubernetes-sigs. |
sigs.k8s.io is the official alias for kubernetes-sigs projects, so should likely use subdomains of that. Providers could use similar naming as well (assuming they are hosted under kubernetes-sigs): |
/assign Would this break v1alpha1 compatibility if we switch? |
I can switch in #1035, if we find consensus |
It will break v1alpha1 compatibility, we should only change for v1alpha2+ |
The only way to preserve v1alpha1 compatibility is to not change it, which means keeping v1alpha1 at the old group name, and changing the name for v1alpha2. At that point, we wouldn't have CRD multi-versioning because it'd be 2 different API groups. |
I don't think we can, given that multi-version support requires the same APIGroup 🤔 |
We'd create 2 different API groups |
We're going to need an external migration anyway since we are breaking out the embedded types and introducing the bootstrapping types. |
Doesn't that mean no webhook conversion though? |
In that case, I'd prefer to keep them under the new type and let the external migration tool handle the change, wdyt? |
I'm not sure conversion webhooks were really on the table given how much of a change this is, and the split from RawExtension to full CRDs will require custom logic per provider. |
What do you mean? |
I mean just use the new APIGroup for v1alpha1 and v1alpha2 and let the external tool to change the APIGroup as well |
We have to keep v1alpha1 using the old api group |
Yes, we can't change the api group otherwise we lose the connection to the underlying object storage in etcd |
/lifecycle active |
/reopen |
@vincepri: Reopened 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. |
the blessed namespace is |
/kind bug
cluster-api/pkg/apis/cluster/v1alpha1/cluster_types.go
Line 26 in 8141304
The API group
.k8s.io
should not be used by anything other than core Kubernetes.The text was updated successfully, but these errors were encountered: