You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue with converting CRDs between versions with kubebuilder 2.2.0. This CRD has embedded native types in the spec like services, pods etc. First I got complaints about "preserveUnknownFields" : spec.conversion.strategy: Invalid value: "Webhook": must be None if spec.preserveUnknownFields is true. I got around that with setting "preserveUnknownFields" to false in the webhook patch that enables the conversion webhook. With the workaround I can get deployed but find that when I am converting in the <>ConvertTo functions the ObjectMeta info for the native objects embedded in my CRD spec are MIA ! The ObjectMeta info for the CRD itself shows up OK. I suspect preserveUnknownFields=false somehow gets in the way of the ObjectMeta info getting propagated correctly. Attributes other than the ObjectMeta info seem to show up OK.
The controller-tools are at v0.2.4; I could not locate an issue that describes this exact issue on either controller-tools or this repo. Thanks for any insights, workarounds !
The text was updated successfully, but these errors were encountered:
I ran into an issue with converting CRDs between versions with kubebuilder 2.2.0. This CRD has embedded native types in the spec like services, pods etc. First I got complaints about "preserveUnknownFields" : spec.conversion.strategy: Invalid value: "Webhook": must be None if spec.preserveUnknownFields is true. I got around that with setting "preserveUnknownFields" to false in the webhook patch that enables the conversion webhook. With the workaround I can get deployed but find that when I am converting in the <>ConvertTo functions the ObjectMeta info for the native objects embedded in my CRD spec are MIA ! The ObjectMeta info for the CRD itself shows up OK. I suspect preserveUnknownFields=false somehow gets in the way of the ObjectMeta info getting propagated correctly. Attributes other than the ObjectMeta info seem to show up OK.
The controller-tools are at v0.2.4; I could not locate an issue that describes this exact issue on either controller-tools or this repo. Thanks for any insights, workarounds !
The text was updated successfully, but these errors were encountered: