perf: 支持k8s ingress secret

This commit is contained in:
xiaojunnuo
2024-09-19 14:23:15 +08:00
parent 60ea9106f1
commit e5a5d0a607
8 changed files with 26 additions and 147 deletions

View File

@@ -8,6 +8,7 @@ import { IContext } from "../core/index.js";
import { ILogger, logger } from "../utils/index.js";
import { HttpClient } from "../utils/util.request";
import { utils } from "../utils/index.js";
import dayjs from "dayjs";
export enum ContextScope {
global,
pipeline,
@@ -138,6 +139,13 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
}
abstract execute(): Promise<void>;
appendTimeSuffix(name?: string) {
if (name == null) {
name = "certd";
}
return name + "_" + dayjs().format("YYYYMMDDHHmmss");
}
}
export type OutputVO = {