Skip to main content

NewK8sLogStreamer

NewK8sLogStreamer creates a K8sLogStreamer from a Kubernetes REST config. It clears the timeout so that long-lived log streams are not interrupted.

def NewK8sLogStreamer(
k8sConfig: *rest.Config
) - > (*K8sLogStreamer, error)

Creates a K8sLogStreamer from a Kubernetes REST config. It clears the timeout so that long-lived log streams are not interrupted.

Parameters

NameTypeDescription
k8sConfig*rest.ConfigThe Kubernetes REST configuration used to establish a connection to the Kubernetes API server.

Returns

TypeDescription
(*K8sLogStreamer, error)A new K8sLogStreamer instance and an error if the Kubernetes clientset could not be created.