发布1.0.4版本

This commit is contained in:
ilovintit 2025-06-15 20:59:19 +08:00
parent b03c3383d5
commit 30d6e7cac2
3 changed files with 11 additions and 10 deletions

9
dist/index.js generated vendored
View File

@ -198958,9 +198958,6 @@ function requireLodash () {
var lodashExports = requireLodash(); var lodashExports = requireLodash();
const insecureAgent = new Agent({
rejectUnauthorized: false
});
/** /**
* The main function for the action. * The main function for the action.
* *
@ -198994,8 +198991,12 @@ async function run() {
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'));
await kc.applyToHTTPSOptions({ await kc.applyToHTTPSOptions({
httpsAgent: insecureAgent httpsAgent: new Agent({
rejectUnauthorized: false,
checkServerIdentity: () => undefined
})
}); });
console.log('disable ssl');
const k8sApi = kc.makeApiClient(ObjectAppsV1Api); const k8sApi = kc.makeApiClient(ObjectAppsV1Api);
const nowDeployment = await k8sApi.readNamespacedDeployment({ const nowDeployment = await k8sApi.readNamespacedDeployment({
name: deployConfig.deployment, name: deployConfig.deployment,

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -12,10 +12,6 @@ interface Config {
deployment: string deployment: string
} }
const insecureAgent = new Agent({
rejectUnauthorized: false
})
/** /**
* The main function for the action. * The main function for the action.
* *
@ -51,8 +47,12 @@ export async function run(): Promise<void> {
path.join(workspace, clusterPath + deployConfig.cluster + '.yaml') path.join(workspace, clusterPath + deployConfig.cluster + '.yaml')
) )
await kc.applyToHTTPSOptions({ await kc.applyToHTTPSOptions({
httpsAgent: insecureAgent httpsAgent: new Agent({
rejectUnauthorized: false,
checkServerIdentity: () => undefined
})
}) })
console.log('disable ssl')
const k8sApi = kc.makeApiClient(k8s.AppsV1Api) const k8sApi = kc.makeApiClient(k8s.AppsV1Api)
const nowDeployment = await k8sApi.readNamespacedDeployment({ const nowDeployment = await k8sApi.readNamespacedDeployment({
name: deployConfig.deployment, name: deployConfig.deployment,