mirror of https://github.com/certd/certd
fix: 修复secret patch 类型多了type:的bug
parent
521083a309
commit
d04f383161
|
@ -85,7 +85,6 @@ export class K8sClient {
|
|||
/**
|
||||
* 创建Secret
|
||||
* @param opts {namespace:default, body:yamlStr}
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
async createSecret(opts: { namespace: string; body: V1Secret }) {
|
||||
const namespace = opts.namespace || "default";
|
||||
|
@ -121,7 +120,7 @@ export class K8sClient {
|
|||
//没有找到,则创建
|
||||
const body = merge(
|
||||
{
|
||||
type: "type: kubernetes.io/tls",
|
||||
type: "kubernetes.io/tls",
|
||||
},
|
||||
opts.body
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue