@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
10 lines • 567 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.startKubePortForward = void 0;
const portForwards_1 = require("../utils/portForwards");
const startKubePortForward = async (podname, localPort, remotePort, namespace) => {
const name = `kube/${namespace}/${podname}/${localPort}:${remotePort}`;
await (0, portForwards_1.startPortForwardCommand)(name, `kubectl port-forward ${podname} ${localPort}:${remotePort} -n ${namespace}`);
};
exports.startKubePortForward = startKubePortForward;
//# sourceMappingURL=portForward.js.map