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
| Name | Type | Description |
|---|---|---|
| k8sConfig | *rest.Config | The Kubernetes REST configuration used to establish a connection to the Kubernetes API server. |
Returns
| Type | Description |
|---|---|
(*K8sLogStreamer, error) | A new K8sLogStreamer instance and an error if the Kubernetes clientset could not be created. |