Skip to content

fix: scenario 51 deployment — use writable data dir#4

Merged
intel352 merged 1 commit intomainfrom
fix/scenario-51-deploy
Mar 9, 2026
Merged

fix: scenario 51 deployment — use writable data dir#4
intel352 merged 1 commit intomainfrom
fix/scenario-51-deploy

Conversation

@intel352
Copy link
Contributor

@intel352 intel352 commented Mar 9, 2026

Summary

  • Use /data/iac-state instead of /var/lib/workflow/iac-state for IaC state dir
  • Remove PVC (mock test doesn't need persistent state)
  • Fixes permission denied on distroless nonroot container

Test plan

  • 13/13 scenario tests passing on minikube

🤖 Generated with Claude Code

Distroless nonroot container can't mkdir /var/lib/workflow. Use the
writable /data emptyDir for iac-state. Remove PVC since mock test
scenario doesn't need persistent state.

Verified: 13/13 tests passing on minikube.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 9, 2026 05:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates scenario 51’s Kubernetes deployment and workflow config to use a writable, in-container data directory for IaC filesystem state, avoiding permission issues when running as a non-root/distroless container.

Changes:

  • Move IaC filesystem state directory from /var/lib/workflow/iac-state to /data/iac-state.
  • Remove the dedicated IaC-state PVC and its corresponding volume mount from the scenario’s K8s manifest.

Reviewed changes

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

File Description
scenarios/51-bmw-iac/k8s/app.yaml Removes the IaC-state PVC + mount, relying on the existing /data volume instead.
scenarios/51-bmw-iac/config/app.yaml Points the iac.state filesystem backend directory to /data/iac-state.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@intel352 intel352 merged commit 00a6dfb into main Mar 9, 2026
11 checks passed
@intel352 intel352 deleted the fix/scenario-51-deploy branch March 9, 2026 05:44
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.

2 participants