Replies: 2 comments
-
The marker Seems that to do what you are looking for your can avoid to use For instance: ```go type SomeConfig struct { In the above struct, However, if that does not answered your question please raise an issue agains controller-tools project (https://github.com/kubernetes-sigs/controller-tools) it is the project responsible for the markers so you might find a better help. I hope that helps you out. |
Beta Was this translation helpful? Give feedback.
-
I no longer have the details of the issue I was facing even when |
Beta Was this translation helpful? Give feedback.
-
How can I use
//+kubebuilder:validation:EmbeddedResource
mentioned in
https://book.kubebuilder.io/reference/markers/crd-validation.html
to set
x-kubernetes-embedded-resource: false
in the CRD yaml to support resources without fields apiVersion/kind/metadata.
The field annonation does not seem to support a boolean as a value.
The objective is to pass through a CR objects (configuration data) without fields like kind/apiVersion/...
Beta Was this translation helpful? Give feedback.
All reactions