-
Notifications
You must be signed in to change notification settings - Fork 717
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
v1beta3: make kubeadm types better support CRDs #1727
Comments
The only field we can make use of is the If the only user of Hence, I don't like the idea of adding a full blown ObjectMeta to types, that are opaque to the API server and usually stored in files and config maps. |
CAPI did something similar because of bugs in unmarshaling related to kubebuilder. no strong opinions on my side, so i think a custom ObjectMeta is fine.
unless someone creates multi-cluster topologies using kubeadm? |
Yep, I forgot about that. In that case |
it really seems that metada.name for our types is to only satisfy kustomize. |
it seems patches can use a few more fields like |
I'm +1 making our config API objects more similar to other K8s objects, with this regard, I expect support at least for name, labels, and annotations |
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. |
/remove-lifecycle stale |
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. |
/remove-lifecycle stale |
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. |
/remove-lifecycle stale |
/lifecycle active |
note, we decided to not add ObjectMeta in kubeadm types for the time being (in v1beta3) the open PR will close this issue as it is now reporposed: in the future we can revisit the topic, but currently there is no evidence of demand outside of kustomize. |
EDIT: neolit123
issue repurposed to track the addition of +optional tags.
ObjectMeta is now out of scope for the time being.
PR:
kubernetes/kubernetes#101925
users such as
kind
or those that apply kustomize patches over the kubeadm config types need to manually add:to your types in serialized form as kustomize requires them.
however this later results in strict unmarshal errors (warnings) when the same types are fed into kubeadm because "metadata" is not a known field.
this can be resolved if we start embedding ObjectMeta in the types.
this seems to be a quirk of the ecosystem (kustomize) and while our types are not really "API" types (more of a component-config), it seems reasonable to make the change.
also i think @fabriziopandini already said that this seems OK to him.
(please correct me if needed)
alternatively a subset of ObjectMeta via a custom type can work too, but i will prefer the full type even if we don't need most of the fields.
ComponentConfig ObjectMeta KEP:
kubernetes/enhancements#1816
The text was updated successfully, but these errors were encountered: