发布1.0.5版本
This commit is contained in:
parent
81bf808ebd
commit
2130cd3eda
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
@ -5,7 +5,7 @@ import require$$1__default from 'fs';
|
|||||||
import * as require$$1$2 from 'path';
|
import * as require$$1$2 from 'path';
|
||||||
import require$$1__default$1 from 'path';
|
import require$$1__default$1 from 'path';
|
||||||
import require$$2 from 'http';
|
import require$$2 from 'http';
|
||||||
import require$$1$3, { Agent } from 'https';
|
import require$$1$3 from 'https';
|
||||||
import require$$0$6 from 'net';
|
import require$$0$6 from 'net';
|
||||||
import require$$4 from 'tls';
|
import require$$4 from 'tls';
|
||||||
import require$$0$3 from 'events';
|
import require$$0$3 from 'events';
|
||||||
@ -198990,13 +198990,16 @@ async function run() {
|
|||||||
console.log('deployConfig:', deployConfig);
|
console.log('deployConfig:', deployConfig);
|
||||||
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'));
|
||||||
|
// kc.addCluster({
|
||||||
|
// name: deployConfig.cluster,
|
||||||
|
// server: kc.getCurrentCluster()?.server,
|
||||||
|
// skipTLSVerify: true
|
||||||
|
// })
|
||||||
const applyHttps = await kc.applyToHTTPSOptions({
|
const applyHttps = await kc.applyToHTTPSOptions({
|
||||||
httpAgent: new Agent({
|
|
||||||
checkServerIdentity: () => undefined,
|
checkServerIdentity: () => undefined,
|
||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
servername: '127.0.0.1',
|
servername: '127.0.0.1',
|
||||||
host: '127.0.0.1'
|
host: '127.0.0.1'
|
||||||
})
|
|
||||||
});
|
});
|
||||||
console.log('disable ssl:', applyHttps);
|
console.log('disable ssl:', applyHttps);
|
||||||
const k8sApi = kc.makeApiClient(ObjectAppsV1Api);
|
const k8sApi = kc.makeApiClient(ObjectAppsV1Api);
|
||||||
|
|||||||
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
@ -3,7 +3,6 @@ import * as k8s from '@kubernetes/client-node'
|
|||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
import { filter, clone } from 'lodash'
|
import { filter, clone } from 'lodash'
|
||||||
import { Agent } from 'https'
|
|
||||||
|
|
||||||
interface Config {
|
interface Config {
|
||||||
branch: string
|
branch: string
|
||||||
@ -45,14 +44,17 @@ export async function run(): Promise<void> {
|
|||||||
kc.loadFromFile(
|
kc.loadFromFile(
|
||||||
path.join(workspace, clusterPath + deployConfig.cluster + '.yaml')
|
path.join(workspace, clusterPath + deployConfig.cluster + '.yaml')
|
||||||
)
|
)
|
||||||
|
// kc.addCluster({
|
||||||
|
// name: deployConfig.cluster,
|
||||||
|
// server: kc.getCurrentCluster()?.server,
|
||||||
|
// skipTLSVerify: true
|
||||||
|
// })
|
||||||
const applyHttps = await kc.applyToHTTPSOptions({
|
const applyHttps = await kc.applyToHTTPSOptions({
|
||||||
httpAgent: new Agent({
|
|
||||||
checkServerIdentity: () => undefined,
|
checkServerIdentity: () => undefined,
|
||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
servername: '127.0.0.1',
|
servername: '127.0.0.1',
|
||||||
host: '127.0.0.1'
|
host: '127.0.0.1'
|
||||||
})
|
})
|
||||||
})
|
|
||||||
console.log('disable ssl:', applyHttps)
|
console.log('disable ssl:', applyHttps)
|
||||||
const k8sApi = kc.makeApiClient(k8s.AppsV1Api)
|
const k8sApi = kc.makeApiClient(k8s.AppsV1Api)
|
||||||
const nowDeployment = await k8sApi.readNamespacedDeployment({
|
const nowDeployment = await k8sApi.readNamespacedDeployment({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user