Using Istio from k8s Operator


I am looking to create Istio resources from within an operator e.g. Gateway, VirtualService etc.

I have the Istio client-go package and that is working fine except it does not allow me to create resources only query for them.

I have additionally added the as well and I can write the go code, with type completion in the IDE in order to create the resources but it seems I cannot AddToScheme in order to use them at operator runtime.

Is this supported?

Many thanks in advance.