发布1.0.5版本
This commit is contained in:
+9
-7
@@ -3,7 +3,6 @@ import * as k8s from '@kubernetes/client-node'
|
||||
import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
import { filter, clone } from 'lodash'
|
||||
import { Agent } from 'https'
|
||||
|
||||
interface Config {
|
||||
branch: string
|
||||
@@ -45,13 +44,16 @@ export async function run(): Promise<void> {
|
||||
kc.loadFromFile(
|
||||
path.join(workspace, clusterPath + deployConfig.cluster + '.yaml')
|
||||
)
|
||||
// kc.addCluster({
|
||||
// name: deployConfig.cluster,
|
||||
// server: kc.getCurrentCluster()?.server,
|
||||
// skipTLSVerify: true
|
||||
// })
|
||||
const applyHttps = await kc.applyToHTTPSOptions({
|
||||
httpAgent: new Agent({
|
||||
checkServerIdentity: () => undefined,
|
||||
rejectUnauthorized: false,
|
||||
servername: '127.0.0.1',
|
||||
host: '127.0.0.1'
|
||||
})
|
||||
checkServerIdentity: () => undefined,
|
||||
rejectUnauthorized: false,
|
||||
servername: '127.0.0.1',
|
||||
host: '127.0.0.1'
|
||||
})
|
||||
console.log('disable ssl:', applyHttps)
|
||||
const k8sApi = kc.makeApiClient(k8s.AppsV1Api)
|
||||
|
||||
Reference in New Issue
Block a user