Description
Describe the bug
Trying to tail logs with readNamespacedPodLog
never returns it's promise
** Client Version **
v0.15.0
** Server Version **
Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.11-34+dbfb3a2003fa8d", GitCommit:"dbfb3a2003fa8dc6661ba29a533e645922978b0f", GitTreeState:"clean", BuildDate:"2021-06-11T05:27:21Z", GoVersion:"go1.15.13", Compiler:"gc", Platform:"linux/arm64"}
To Reproduce
Steps to reproduce the behavior:
Set up a client and try and tail the logs from an existing pod using the example code supplied
Expected behavior
I expect the 50 lines of previous logs to be received and then be able to read any new logs written.
Example Code
const k8s = require('@kubernetes/client-node');
const kc = new k8s.KubeConfig()
kc.loadFromDefault()
const k8sApi = kc.makeApiClient(k8s.CoreV1Api)
k8sApi.readNamespacedPodLog('ben', 'default', 'node-red', true, false, undefined, "true", false, undefined, 50, true)
.then(res => {
console.log(res)
})
.catch(err => {
console.log(err)
})
Environment (please complete the following information):
- OS: Linux (Rasbian/Debian 10/buster)
- NodeJS Version v12.22..1
Additional context
Add any other context about the problem here.
Trying to migrate from the Godady library and looking for feature parity given it appears to have stopped being worked on since announcing the merge with this project.
#110 looks to have timed out and been closed without a obvious solution.