Documentation ¶
Overview ¶
Package k8sclient provides the Kubernetes client for the controllers package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // typed Kubernetes client *kubernetes.Clientset // dynamic Kubernetes client *dynamic.DynamicClient }
Client provides typed and dynamic Kubernetes clients
func (*Client) Patch ¶
func (cl *Client) Patch(gvr schema.GroupVersionResource, objNamespace string, objName string, jsonBytes []byte) (*unstructured.Unstructured, error)
Patch performs a server-side apply of GVR
type Interface ¶
type Interface interface { kubernetes.Interface dynamic.Interface Patch(gvr schema.GroupVersionResource, objNamespace string, objName string, by []byte) (*unstructured.Unstructured, error) }
Interface enables interaction with a Kubernetes cluster Can be mocked in unit tests with fake implementation
Click to show internal directories.
Click to hide internal directories.