发布1.0.4版本
This commit is contained in:
parent
b03c3383d5
commit
30d6e7cac2
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
10
src/main.ts
10
src/main.ts
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user