发布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
+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,