fix: 修复secret patch 类型多了type:的bug

v2-dev
xiaojunnuo 2025-09-09 16:30:21 +08:00
parent 521083a309
commit d04f383161
1 changed files with 1 additions and 2 deletions

View File

@ -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
);