mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Add open port checks
This commit is contained in:
@@ -289,3 +289,8 @@ func ReadFileFromContainer(ctx context.Context, dClient *client.Client, hostname
|
||||
}
|
||||
return string(file), nil
|
||||
}
|
||||
|
||||
func ReadContainerLogs(ctx context.Context, dClient *client.Client, containerName string) (io.ReadCloser, error) {
|
||||
return dClient.ContainerLogs(ctx, containerName, types.ContainerLogsOptions{ShowStdout: true})
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user