发布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
Generated Vendored
+5 -4
View File
@@ -198958,9 +198958,6 @@ function requireLodash () {
var lodashExports = requireLodash();
const insecureAgent = new Agent({
rejectUnauthorized: false
});
/**
* The main function for the action.
*
@@ -198994,8 +198991,12 @@ async function run() {
const kc = new KubeConfig();
kc.loadFromFile(require$$1$2.join(workspace, clusterPath + deployConfig.cluster + '.yaml'));
await kc.applyToHTTPSOptions({
httpsAgent: insecureAgent
httpsAgent: new Agent({
rejectUnauthorized: false,
checkServerIdentity: () => undefined
})
});
console.log('disable ssl');
const k8sApi = kc.makeApiClient(ObjectAppsV1Api);
const nowDeployment = await k8sApi.readNamespacedDeployment({
name: deployConfig.deployment,
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+5 -5
View File
@@ -12,10 +12,6 @@ interface Config {
deployment: string
}
const insecureAgent = new Agent({
rejectUnauthorized: false
})
/**
* The main function for the action.
*
@@ -51,8 +47,12 @@ export async function run(): Promise<void> {
path.join(workspace, clusterPath + deployConfig.cluster + '.yaml')
)
await kc.applyToHTTPSOptions({
httpsAgent: insecureAgent
httpsAgent: new Agent({
rejectUnauthorized: false,
checkServerIdentity: () => undefined
})
})
console.log('disable ssl')
const k8sApi = kc.makeApiClient(k8s.AppsV1Api)
const nowDeployment = await k8sApi.readNamespacedDeployment({
name: deployConfig.deployment,