apisix-ingress-controller
apisix-ingress-controller copied to clipboard
Use controller-gen to generate CRDs instead of writing them by hand
Currently, we write CRDs by ourselves, it's tedious and error-prone. We should use tools like controller-gen to generate them so that we can focus on the changes of go data structures, and let it do the rest jobs.
@gxthrj @tao12345666333 @lingsamuel
To do so, we need to remove usage of:
any type (interface{}
), float64 (or enable allowDangerousTypes=true
flag).
To do so, we need to remove usage of: any type (
interface{}
), float64 (or enableallowDangerousTypes=true
flag).
Got it.
xref: https://github.com/apache/apisix-ingress-controller/pull/689#issuecomment-927212290
If any CRD validation rules cannot be represented by markers, we should ensure that they are migrated to our code.