INNER CODE UNIT · TypeScript

loadConfig

linode/apl-core · src/operator/main.ts:21

async function loadConfig(aplOps: AplOperations): Promise<AplOperatorConfig> {
  const gitConfig = await getStoredGitRepoConfig()

  if (!gitConfig) {
    throw new Error('Git config not found in stored secrets/configmap. Run installation first.')
  }

  const gitRepository = new GitRepository({
    ...gitConfig,
    repoPath: env.ENV_DIR,
    gitOpTimeoutMs: operatorEnv.GIT_OP_TIMEOUT_MS,
  })

  return {
    gitRepo: gitRepository,
    aplOps,
    pollIntervalMs: operatorEnv.POLL_INTERVAL_MS,
    reconcileIntervalMs: operatorEnv.RECONCILE_INTERVAL_MS,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…