deploy: configure NC01 HWLAB monitor exposure
This commit is contained in:
@@ -1817,10 +1817,7 @@ function tektonGitWorkspaceSecretSpec(
|
||||
if (sourceRefFrom !== "gitMirror.githubTransport") {
|
||||
throw new Error(`${path}.sourceRefFrom must be gitMirror.githubTransport`);
|
||||
}
|
||||
if (githubTransport.mode !== "ssh") {
|
||||
throw new Error(`${path}.sourceRefFrom=gitMirror.githubTransport requires gitMirror.githubTransport.mode=ssh`);
|
||||
}
|
||||
if (githubTransport.knownHostsSecretKey === null) {
|
||||
if (githubTransport.mode === "ssh" && githubTransport.knownHostsSecretKey === null) {
|
||||
throw new Error(`${path}.sourceRefFrom=gitMirror.githubTransport requires gitMirror.githubTransport.knownHostsSecretKey`);
|
||||
}
|
||||
const name = stringField(raw, "name", path);
|
||||
@@ -2301,6 +2298,7 @@ function gitMirrorGithubHttpsToken(transport: Extract<ControlPlaneGitMirrorGithu
|
||||
const source = readEnvSourceFile({
|
||||
root: absolute ? "/" : rootPath("."),
|
||||
sourceRef: absolute ? transport.tokenSourceRef.slice(1) : transport.tokenSourceRef,
|
||||
rawKey: transport.tokenSourceKey,
|
||||
missingMessage: () => `gitMirror.githubTransport token source ${transport.tokenSourceRef} is missing; create the YAML-declared sourceRef with ${transport.tokenSourceKey} before applying the control plane`,
|
||||
});
|
||||
const value = requiredEnvValue(source.values, transport.tokenSourceKey, transport.tokenSourceRef);
|
||||
|
||||
Reference in New Issue
Block a user