Skip to content
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

Objectmeta of embedded object goes missing during CRD conversion #974

Closed
champak opened this issue May 29, 2020 · 1 comment
Closed

Objectmeta of embedded object goes missing during CRD conversion #974

champak opened this issue May 29, 2020 · 1 comment

Comments

@champak
Copy link

champak commented May 29, 2020

Hi folks,
I ran into an odd issue with CRD conversion using controller-tools v0.2.4/kubebuilder 2.2.0/apiserver 17.1 This CRD has embedded native specs like the PodTemplateSpec in its spec. I found that in the conversion functions the ObjectMeta of the embedded PodTemplateSpec is nulled out. Other attributes look OK. There is nothing in the validation callback. I had needed to add preserveUnknownFields: false to the CRD to be able to deploy the yaml; not sure if that has some sideffect

The ObjectMeta for the CRD itself shows up fine. It is the embedded spec's ObjectMeta that seemed to be affected. Does this sound like any known issue ? One that looked somewhat related from a search was kubernetes-sigs/controller-tools#279 with comments from @DirectXMan12 but was not quite the same problem.
Thanks for any insight !

@champak
Copy link
Author

champak commented May 29, 2020

wrong repo. Sorry !

@champak champak closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant