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

This commit is contained in:
xiaojunnuo
2025-09-09 16:30:21 +08:00
parent 521083a309
commit d04f383161
+1 -2
View File
@@ -85,7 +85,6 @@ export class K8sClient {
/** /**
* 创建Secret * 创建Secret
* @param opts {namespace:default, body:yamlStr} * @param opts {namespace:default, body:yamlStr}
* @returns {Promise<*>}
*/ */
async createSecret(opts: { namespace: string; body: V1Secret }) { async createSecret(opts: { namespace: string; body: V1Secret }) {
const namespace = opts.namespace || "default"; const namespace = opts.namespace || "default";
@@ -121,7 +120,7 @@ export class K8sClient {
//没有找到,则创建 //没有找到,则创建
const body = merge( const body = merge(
{ {
type: "type: kubernetes.io/tls", type: "kubernetes.io/tls",
}, },
opts.body opts.body
); );