perf: 抽取api

This commit is contained in:
xiaojunnuo
2021-01-06 23:29:10 +08:00
parent f07ce6f47d
commit 5312c11472
41 changed files with 5001 additions and 119 deletions
@@ -1,7 +1,8 @@
import kubernetesClient from 'kubernetes-client'
import logger from './util.log.js'
import { util } from '@certd/api0'
import Request from 'kubernetes-client/backends/request/index.js'
const { KubeConfig, Client } = kubernetesClient
const logger = util.logger
export class K8sClient {
constructor (kubeConfigStr) {
const kubeconfig = new KubeConfig()