Skip to content

Commit 129c82c

Browse files
authored
feat: add logs tailLines (#17)
1 parent 1dd60c6 commit 129c82c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/logs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
const Client = require('./client-base');
33

44
class Logs extends Client {
5-
async get({ podName, containerName }) {
6-
return this._client.api.v1.namespaces(this._namespace).pods(podName).log.get({ qs: { container: containerName } });
5+
async get({ podName, containerName, tailLines }) {
6+
return this._client.api.v1.namespaces(this._namespace).pods(podName).log.get({ qs: { container: containerName, tailLines } });
77
}
88
}
99

0 commit comments

Comments
 (0)