-
Notifications
You must be signed in to change notification settings - Fork 309
Description
The following code worked fine until I updated the .NET library to 5/6:
var log = _kubernetesClient.ReadNamespacedPodLog(
podName,
currentNamespace,
container: containerName,
tailLines: returnRailLines,
timestamps: showLogTimestamps,
previous: previousLog);
The async version worked too:
var log = await _kubernetesClient.ReadNamespacedPodLogAsync(
podName,
currentNamespace,
container: containerName,
tailLines: returnRailLines,
timestamps: showLogTimestamps,
previous: previousLog);
After upgrading to 5.0.20 (and then 6.0.26), both versions of these simply block forever. Nothing is ever returned and no error is shown.
I tried upgrading to version 7.0, and then the entire app stopped working, so I couldn't test the above functionality. That may be because I'm connecting to a 1.21.9 cluster. Getting version 6.0 to work would be fine for now.
Platform: .Net 5.0
Kubectl version:
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:48:33Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.9", GitCommit:"37f338aa38e0427e127162afe462e2f4150f0ba3", GitTreeState:"clean", BuildDate:"2022-02-07T20:49:26Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}