1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2022-06-07 15:21:59 +08:00
parent a14f932a65
commit 76cb24fbcf
No known key found for this signature in database
GPG Key ID: 54B44603D251B788

View File

@ -170,9 +170,12 @@ 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;
agent?: Agent;
}
export function forCluster<
@ -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;