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
Kubernetes Kubebuilder code generator is not able to handle union tag which handles the oneOf definition that allows us to define which types a struct accepts two types, example, string and boolean.
More information on kubernetes-sigs/controller-tools#298
One option to overcome this problem is defining the affect struct as schemaless and delegate the workflow validation to the admission webhook.
spolti
changed the title
[KUBE] Use Schemaless for Objects that can be Unmarshaled as string or struct.
[KUBE] Use Schemaless for Objects that can be Unmarshaled as string or struct
Mar 29, 2023
What would you like to be added:
Kubernetes Kubebuilder code generator is not able to handle union tag which handles the oneOf definition that allows us to define which types a struct accepts two types, example, string and boolean.
More information on kubernetes-sigs/controller-tools#298
One option to overcome this problem is defining the affect struct as schemaless and delegate the workflow validation to the admission webhook.
E..g:
This way, this field can be defined as Schemaless and will accept any value.
Why is this needed:
To be able to smoothly integrate the sdk with Kubernetes.
The text was updated successfully, but these errors were encountered: