We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96bb098 commit 35c50aeCopy full SHA for 35c50ae
src/log.ts
@@ -51,14 +51,14 @@ export class Log {
51
this.config = config;
52
}
53
54
- public log(
+ public async log(
55
namespace: string,
56
podName: string,
57
containerName: string,
58
stream: Writable,
59
done: (err: any) => void,
60
options: LogOptions = {},
61
- ): request.Request {
+ ): Promise<request.Request> {
62
const path = `/api/v1/namespaces/${namespace}/pods/${podName}/log`;
63
64
const cluster = this.config.getCurrentCluster();
@@ -75,7 +75,7 @@ export class Log {
75
},
76
uri: url,
77
};
78
- this.config.applyToRequest(requestOptions);
+ await this.config.applyToRequest(requestOptions);
79
80
const req = request(requestOptions, (error, response, body) => {
81
if (error) {
0 commit comments