Skip to content

Commit

Permalink
configurable checkpoint registry namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktrn committed Jun 10, 2024
1 parent 52112c3 commit 3b13570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/coordinator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const SIMULATE_CHECKPOINT_FAILURE_SECONDS = parseInt(
);

const REGISTRY_HOST = process.env.REGISTRY_HOST || "localhost:5000";
const REGISTRY_NAMESPACE = process.env.REGISTRY_NAMESPACE || "trigger";
const CHECKPOINT_PATH = process.env.CHECKPOINT_PATH || "/checkpoints";
const REGISTRY_TLS_VERIFY = process.env.REGISTRY_TLS_VERIFY === "false" ? "false" : "true";

Expand Down Expand Up @@ -179,7 +180,7 @@ class Checkpointer {
}

#getImageRef(projectRef: string, deploymentVersion: string, shortCode: string) {
return `${REGISTRY_HOST}/trigger/${projectRef}:${deploymentVersion}.prod-${shortCode}`;
return `${REGISTRY_HOST}/${REGISTRY_NAMESPACE}/${projectRef}:${deploymentVersion}.prod-${shortCode}`;
}

#getExportLocation(projectRef: string, deploymentVersion: string, shortCode: string) {
Expand Down

0 comments on commit 3b13570

Please sign in to comment.