Skip to content

write command output outside snapshotted rootfs - #397

Open
benldrmn wants to merge 2 commits into
mainfrom
fix/command-logs-tmpfs
Open

write command output outside snapshotted rootfs#397
benldrmn wants to merge 2 commits into
mainfrom
fix/command-logs-tmpfs

Conversation

@benldrmn

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd94f569cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/operator/controller/sandbox_controller.go
// here would only bound the tmpfs, not add capacity. Usage counts against the
// pod's memory budget.
sandboxPod.Spec.Volumes = append(sandboxPod.Spec.Volumes, corev1.Volume{
Name: sandboxCommandOutputVolumeName,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reserve or de-duplicate the injected volume name

If a Sandbox podTemplate.spec.volumes already contains a volume named command-output, CreateSandboxPod copies that user spec and this append adds a second volume with the same name, which Kubernetes rejects during Pod creation. Since the CRD explicitly allows users to define volumes, existing sandboxes using this common name will start failing to create unless the injected name is made clearly internal or conflicts are detected/handled before appending.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant