fix: 传递 runner boot repo URL
This commit is contained in:
@@ -674,10 +674,12 @@ function validationExecutionPolicy(profile: BackendProfile, namespace: string):
|
||||
}
|
||||
|
||||
function runnerDefaultsForValidation(options: ProviderProfileValidationOptions, namespace: string): RunnerJobDefaults {
|
||||
const bootRepoUrl = optionalString(options.runnerJobDefaults?.bootRepoUrl ?? process.env.AGENTRUN_BOOT_REPO_URL);
|
||||
return {
|
||||
namespace,
|
||||
managerUrl: options.runnerJobDefaults?.managerUrl ?? process.env.AGENTRUN_INTERNAL_MGR_URL ?? `http://agentrun-mgr.${namespace}.svc.cluster.local:8080`,
|
||||
image: options.runnerJobDefaults?.image ?? process.env.AGENTRUN_RUNNER_IMAGE ?? "",
|
||||
...(bootRepoUrl ? { bootRepoUrl } : {}),
|
||||
sourceCommit: options.runnerJobDefaults?.sourceCommit ?? options.sourceCommit,
|
||||
serviceAccountName: options.runnerJobDefaults?.serviceAccountName ?? process.env.AGENTRUN_RUNNER_SERVICE_ACCOUNT ?? "agentrun-v01-runner",
|
||||
kubectlCommand: options.runnerJobDefaults?.kubectlCommand ?? options.kubectlCommand ?? "kubectl",
|
||||
|
||||
Reference in New Issue
Block a user