Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2022-06-07 15:21:59 +08:00
1 parent a14f932a65
commit 76cb24fbcf
1 file changed
+5 -2
+5 -2
View File
@@ -170,7 +170,10 @@ export interface IRemoteKubeApiConfig {
clientKeyData?: string;
};
/**
* Custom instance of https.agent
* Custom instance of https.agent to use for the requests
*
* @remarks the custom agent replaced default agent, options skipTLSVerify,
* clientCertificateData, clientKeyData and caData are ignored.
*/
agent?: Agent;
}
@@ -245,7 +248,7 @@ export function forRemoteCluster<
}
if (config.agent) {
reqInit.agent = config.agent.constructor(agentOptions);
reqInit.agent = config.agent;
}
const token = config.user.token;