Removing unique porch deployment repo type functionality + now dead plumbing - #1170
Removing unique porch deployment repo type functionality + now dead plumbing#1170Catalin-Stratulat-Ericsson wants to merge 4 commits into
Conversation
Signed-off-by: Catalin-Stratulat-Ericsson <catalin.stratulat@ericsson.com>
✅ Deploy Preview for kpt-porch ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…tx generation Signed-off-by: Catalin-Stratulat-Ericsson <catalin.stratulat@ericsson.com>
Signed-off-by: Catalin-Stratulat-Ericsson <catalin.stratulat@ericsson.com>
Signed-off-by: Catalin-Stratulat-Ericsson <catalin.stratulat@ericsson.com>
There was a problem hiding this comment.
🟢 Approval recommended
The refactor cleanly removes the deployment-repo special casing and updates all verified call sites/tests accordingly without leaving dangling references.
Pull request overview
This PR removes the remaining “deployment repository” special-case behavior so deployment and non-deployment porch.repository objects behave identically, and cleans up the now-dead supporting plumbing and tests.
Changes:
- Removes deployment-only clone behavior (package-context generation) and associated task/mutation plumbing.
- Simplifies the
TaskHandler.ApplyTaskAPI by removing repository/package-config parameters that are no longer used. - Deletes the e2e test and unit/golden tests that exclusively validated the removed deployment-repo behavior.
File summaries
| File | Description |
|---|---|
| test/e2e/api/rpkg_clone_test.go | Removes the e2e test covering deployment-repo-only clone behavior and the now-unused import. |
| pkg/task/testdata/context/input/Kptfile | Removes golden test input data for package-context generation. |
| pkg/task/testdata/context/input/bucket.yaml | Removes golden test input data for package-context generation. |
| pkg/task/testdata/context/expected/package-context.yaml | Removes golden expected output for package-context generation. |
| pkg/task/testdata/context/expected/Kptfile | Removes golden expected output for package-context generation. |
| pkg/task/testdata/context/expected/bucket.yaml | Removes golden expected output for package-context generation. |
| pkg/task/taskhandler.go | Updates the TaskHandler interface to the simplified ApplyTask signature. |
| pkg/task/pkgctxt.go | Deletes the package-context generator mutation implementation. |
| pkg/task/pkgctxt_test.go | Deletes the unit test and golden update flow for the package-context generator. |
| pkg/task/generictaskhandler.go | Updates task handling to use the simplified mutation mapping and ApplyTask signature. |
| pkg/task/generictaskhandler_test.go | Updates tests to match the simplified ApplyTask/mutation mapping APIs. |
| pkg/task/clone.go | Removes deployment-only package-context generation during clone. |
| pkg/repository/package.go | Removes BuildPackageConfig and related context-config extraction helpers now made obsolete. |
| pkg/engine/engine.go | Removes package-config construction and updates task application call site. |
| pkg/engine/engine_test.go | Updates the task handler mock and expectations to match the new ApplyTask signature. |
Review details
- Files reviewed: 15/15 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
There was a problem hiding this comment.
🟢 Approval recommended
The refactor consistently removes the deployment-only clone behavior and updates all call sites/tests for the simplified task handler interface without leaving dangling references.
Review details
- Files reviewed: 15/15 changed files
- Comments generated: 0 new
- Review effort level: Lite



Removing unique deployment repo type functionality + plumbing
Description
Related Issue(s)
Type of Change
Checklist
Testing Instructions (Optional)
Additional Notes (Optional)
AI Disclosure