github.com/iter8-tools/iter8@v1.1.2/controllers/k8sclient/interface.go (about)

     1  // Package k8sclient provides the Kubernetes client for the controllers package
     2  package k8sclient
     3  
     4  import (
     5  	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
     6  	"k8s.io/apimachinery/pkg/runtime/schema"
     7  	"k8s.io/client-go/dynamic"
     8  	"k8s.io/client-go/kubernetes"
     9  )
    10  
    11  // Interface enables interaction with a Kubernetes cluster
    12  // Can be mocked in unit tests with fake implementation
    13  type Interface interface {
    14  	kubernetes.Interface
    15  	dynamic.Interface
    16  	Patch(gvr schema.GroupVersionResource, objNamespace string, objName string, by []byte) (*unstructured.Unstructured, error)
    17  }