fix: mount shared PVC into write-prompt init container #12
@@ -508,6 +508,7 @@ export function buildJobManifest(input: JobBuildInput): JobBuildResult {
|
|||||||
volumeMounts: [
|
volumeMounts: [
|
||||||
{ name: "prompt", mountPath: "/tmp/prompt" },
|
{ name: "prompt", mountPath: "/tmp/prompt" },
|
||||||
{ name: "prompt-secret", mountPath: "/tmp/prompt-secret", readOnly: true },
|
{ name: "prompt-secret", mountPath: "/tmp/prompt-secret", readOnly: true },
|
||||||
|
{ name: "data", mountPath: "/paperclip" },
|
||||||
],
|
],
|
||||||
securityContext,
|
securityContext,
|
||||||
resources: {
|
resources: {
|
||||||
@@ -521,7 +522,10 @@ export function buildJobManifest(input: JobBuildInput): JobBuildResult {
|
|||||||
imagePullPolicy: "IfNotPresent",
|
imagePullPolicy: "IfNotPresent",
|
||||||
command: ["sh", "-c", `mkdir -p /paperclip/instances/default/run-logs/${agent.companyId}/${agent.id} && printf '%s' "$PROMPT_CONTENT" > /tmp/prompt/prompt.txt`],
|
command: ["sh", "-c", `mkdir -p /paperclip/instances/default/run-logs/${agent.companyId}/${agent.id} && printf '%s' "$PROMPT_CONTENT" > /tmp/prompt/prompt.txt`],
|
||||||
env: [{ name: "PROMPT_CONTENT", value: prompt }],
|
env: [{ name: "PROMPT_CONTENT", value: prompt }],
|
||||||
volumeMounts: [{ name: "prompt", mountPath: "/tmp/prompt" }],
|
volumeMounts: [
|
||||||
|
{ name: "prompt", mountPath: "/tmp/prompt" },
|
||||||
|
{ name: "data", mountPath: "/paperclip" },
|
||||||
|
],
|
||||||
securityContext,
|
securityContext,
|
||||||
resources: {
|
resources: {
|
||||||
requests: { cpu: "10m", memory: "16Mi" },
|
requests: { cpu: "10m", memory: "16Mi" },
|
||||||
|
|||||||
Reference in New Issue
Block a user