发布1.0.5版本

This commit is contained in:
ilovintit 2025-06-15 23:03:15 +08:00
parent 2130cd3eda
commit e48a4ba491
3 changed files with 4 additions and 11 deletions

6
dist/index.js generated vendored
View File

@ -198990,11 +198990,7 @@ async function run() {
console.log('deployConfig:', deployConfig); console.log('deployConfig:', deployConfig);
const kc = new KubeConfig(); const kc = new KubeConfig();
kc.loadFromFile(require$$1$2.join(workspace, clusterPath + deployConfig.cluster + '.yaml')); kc.loadFromFile(require$$1$2.join(workspace, clusterPath + deployConfig.cluster + '.yaml'));
// kc.addCluster({ console.log(kc.getCurrentCluster());
// name: deployConfig.cluster,
// server: kc.getCurrentCluster()?.server,
// skipTLSVerify: true
// })
const applyHttps = await kc.applyToHTTPSOptions({ const applyHttps = await kc.applyToHTTPSOptions({
checkServerIdentity: () => undefined, checkServerIdentity: () => undefined,
rejectUnauthorized: false, rejectUnauthorized: false,

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -10,6 +10,7 @@ interface Config {
namespace: string namespace: string
deployment: string deployment: string
} }
/** /**
* The main function for the action. * The main function for the action.
* *
@ -44,11 +45,7 @@ export async function run(): Promise<void> {
kc.loadFromFile( kc.loadFromFile(
path.join(workspace, clusterPath + deployConfig.cluster + '.yaml') path.join(workspace, clusterPath + deployConfig.cluster + '.yaml')
) )
// kc.addCluster({ console.log(kc.getCurrentCluster())
// name: deployConfig.cluster,
// server: kc.getCurrentCluster()?.server,
// skipTLSVerify: true
// })
const applyHttps = await kc.applyToHTTPSOptions({ const applyHttps = await kc.applyToHTTPSOptions({
checkServerIdentity: () => undefined, checkServerIdentity: () => undefined,
rejectUnauthorized: false, rejectUnauthorized: false,