Generate Embedded ObjectMeta in the CRDs

191 views
Skip to first unread message

Daniel Valdivia

unread,
Mar 12, 2021, 5:35:43 PM3/12/21
to kubebuilder

Hello everyone,

I sent a PR up for controller-gen repo which I think would be extremely useful, it hasn't received much attention so I though of bringing up in this mailing list to see if anyone has any feedback regarding the behavior.

At the moment any embedded metadata object is not generated, this is to avoid certain problems with the kubernetes API, however, there's certain scenarios where actually generating parts of it makes sense, such as when embedding a PersistenVolumeClaimTemplate which could have some .metadata.labels and .metadata.annotations which are needed.

Please let me know your thoughts, we are already using this on the MinIO Operator since we leverage PVC templates and I think this would be useful for others

https://github.com/kubernetes-sigs/controller-tools/pull/539

Cheers

Reply all
Reply to author
Forward
0 new messages