Skip to content

devworkspace-custom-init-containers-gaps#10

Open
akurinnoy wants to merge 6 commits into
mainfrom
supervisor/undefined
Open

devworkspace-custom-init-containers-gaps#10
akurinnoy wants to merge 6 commits into
mainfrom
supervisor/undefined

Conversation

@akurinnoy

Copy link
Copy Markdown
Owner

Summary

Automated implementation via supervisor execution pipeline.

Run ID: devworkspace-custom-init-containers-gaps-no-ts
Plan ID: devworkspace-custom-init-containers-gaps
Waves completed: 2/2

Tasks

  • T1: Implement strict command validation in EnsureHomeInitContainerFields
  • T3: Add controller integration tests for DWOC init container injection
  • T2: Add unit tests for EnsureHomeInitContainerFields covering command validation

Integration Waves

  • Wave 1: merged T1, T3
  • Wave 2: merged T2

akurinnoy and others added 6 commits June 29, 2026 16:29
If a custom init-persistent-home container has a command other than
[/bin/sh, -c], return an error instead of silently accepting it.
Uses reflect.DeepEqual for exact slice comparison.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Adds a new 'DWOC init containers' Context block to devworkspace_controller_test.go
with three It() cases: basic custom init injection, init-persistent-home override
when persistent home is enabled, and skipping init-persistent-home when disabled.
Adds a minimal supporting fixture YAML for the new tests.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Add table-driven tests for EnsureHomeInitContainerFields verifying:
- nil command gets default [/bin/sh, -c]
- exact [/bin/sh, -c] command is kept as-is
- different commands return error with message 'command must be exactly [/bin/sh, -c]'
- partial match commands also return error
- VolumeMounts are set to home volume mount on success
- existing env vars and other container fields are preserved

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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