fix(cicd): inject runtime gitops guard in native refresh
This commit is contained in:
@@ -164,6 +164,9 @@ export function renderControllerManifests(registry: BranchFollowerRegistry): Rec
|
||||
"hwlab-node-control-plane-refresh.mjs": nativeCicdScript("hwlab-node-control-plane-refresh.mjs"),
|
||||
"github-proxy-connect.mjs": nativeCicdScript("github-proxy-connect.mjs"),
|
||||
"git-ssh-proxy.sh": nativeCicdScript("git-ssh-proxy.sh"),
|
||||
"runtime-gitops-observability.mjs": nativeHwlabScript("runtime-gitops-observability.mjs"),
|
||||
"runtime-gitops-postprocess.mjs": nativeHwlabScript("runtime-gitops-postprocess.mjs"),
|
||||
"runtime-gitops-verify.mjs": nativeHwlabScript("runtime-gitops-verify.mjs"),
|
||||
};
|
||||
const controllerConfigSha = sha256(JSON.stringify(controllerConfigData));
|
||||
return [
|
||||
@@ -302,6 +305,10 @@ function nativeCicdScript(name: string): string {
|
||||
return readFileSync(rootPath("scripts/native/cicd", name), "utf8");
|
||||
}
|
||||
|
||||
function nativeHwlabScript(name: string): string {
|
||||
return readFileSync(rootPath("scripts/native/hwlab", name), "utf8");
|
||||
}
|
||||
|
||||
function sha256(value: string): string {
|
||||
return createHash("sha256").update(value).digest("hex");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user