发布1.0.4版本
This commit is contained in:
+5
-4
@@ -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,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user