Fix adding res and add missing forms

This commit is contained in:
Fang-Pen Lin
2025-12-05 12:07:33 -08:00
parent e12f30cd43
commit 5ac4e0a5bb
8 changed files with 365 additions and 8 deletions
@@ -67,10 +67,11 @@ export const executeWithGateway = async <T>(
async (proxyPort) => {
const protocol = url.protocol === "https:" ? "https" : "http";
const baseUrl = `${protocol}://localhost:${proxyPort}`;
// const baseUrl = `http://localhost:${proxyPort}`;
return operation(baseUrl, httpsAgent);
},
{
protocol: GatewayProxyProtocol.Http,
protocol: GatewayProxyProtocol.Tcp,
relayHost: platformConnectionDetails.relayHost,
gateway: platformConnectionDetails.gateway,
relay: platformConnectionDetails.relay,
@@ -92,9 +93,6 @@ export const kubernetesResourceFactory: TPamResourceFactory<
// Validate connection by checking API server version
try {
await axios.get(`${baseUrl}/version`, {
headers: {
"Content-Type": "application/json"
},
...(httpsAgent ? { httpsAgent } : {}),
signal: AbortSignal.timeout(EXTERNAL_REQUEST_TIMEOUT),
timeout: EXTERNAL_REQUEST_TIMEOUT