mirror of
https://github.com/certd/certd.git
synced 2026-05-18 22:57:31 +08:00
fix: 修复secret patch 类型多了type:的bug
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user