Skip to content

Pass container options to docker steps (ID-5345) - #48

Merged
kdumontnu merged 1 commit into
mainfrom
kd/docker-step-container-options
Aug 31, 2026
Merged

kdumontnu merged 1 commit into
mainfrom
kd/docker-step-container-options

Conversation

@kdumontnu

@kdumontnu kdumontnu commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • pass operator-configured container.options to docker:// step containers
  • verify the step container receives the exact operator-only options string
  • verify an allowlisted read-only --mount survives production option merging and volume sanitization

Testing

  • go test ./pkg/runner -run "^(TestStepDockerMain|TestStepDockerPrePost)$" -count=1
  • go test ./pkg/container -run "^(TestCheckVolumes|TestOptionsMountSurvivesSanitize)$" -count=1
  • go vet ./pkg/runner ./pkg/container
  • go build ./...

Rollout validation

Before release, run the staging instance-verification workflow and confirm the CA is visible and TLS succeeds inside the docker:// step.

Closes Notion ticket ID-5345.

Copilot AI 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.

Pull request overview

Passes operator-configured container options to docker:// step containers.

Changes:

  • Propagates ContainerOptions to Docker steps.
  • Tests exact option forwarding.
  • Verifies allowlisted read-only mounts survive sanitization.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pkg/runner/step_docker.go Passes container options to Docker steps.
pkg/runner/step_docker_test.go Tests option propagation.
pkg/container/docker_run_test.go Tests mount merging and sanitization.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jadidbourbaki jadidbourbaki 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.

Simple clean well-scoped addition for something that probably should have been an option in the first place. LGTM.

assert.Nil(t, err)

assert.Equal(t, "node:14", input.Image)
assert.Equal(t, sd.RunContext.Config.ContainerOptions, input.Options)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test looks correct.

Comment thread pkg/runner/step_docker.go
Privileged: rc.Config.Privileged,
UsernsMode: rc.Config.UsernsMode,
Platform: rc.Config.ContainerArchitecture,
Options: rc.Config.ContainerOptions,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

+1, extends struct correctly

@kdumontnu
kdumontnu merged commit aa8c62c into main Aug 31, 2026
3 checks passed
@kdumontnu
kdumontnu deleted the kd/docker-step-container-options branch August 31, 2026 18:25
@kdumontnu kdumontnu changed the title Pass container options to docker steps Pass container options to docker steps (ID-5345) Sep 9, 2026
@notion-workspace

Copy link
Copy Markdown

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.

4 participants