Clientset for Client-go

Hey guys, I'm trying to write a Terraform Provider to handle ECK resources (@ begin, ES and Kibana). Does the operator implements clientset to create a client using Kubernetes client-go? Or I have to create it myself using the types created on pkg/apis/elasticsearch/v1/elasticsearch_types.go?

If it doesn't implement it, does anyone did that?

Thank u in advance.

There is no ClientSet implementation. I think your options are:

  • Use the Unstructured client (doesn't require a dependency on ECK)
  • Use github.com/elastic/cloud-on-k8s/pkg/controller/common/scheme.SetupScheme() method to register ECK types with the client-go scheme. You can then use client-go to access ECK objects.