Using Istio from k8s Operator

Hi

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 istio.io/client-go/pkg/apis/networking/v1alpha3 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.

Did you every found a solution for this? I am having the same issues.

tx.,

Just found it myself. Hadd to use istio.AddToScheme(scheme) inside the manager’s init function