Skip to content

Removed old subpackage fragments#968

Merged
efiacor merged 3 commits into
kptdev:mainfrom
Nordix:remove-subpackage-crud
May 7, 2026
Merged

Removed old subpackage fragments#968
efiacor merged 3 commits into
kptdev:mainfrom
Nordix:remove-subpackage-crud

Conversation

@liamfallon
Copy link
Copy Markdown
Contributor

Removed old subpackage fragments


Description

  • What changed: There are placeholders in Porch for handing subpackages. Those placeholders are not consistent and will be superseded by the upcoming introduction of support for upgrade on subpackages in package revisions and are removed.
  • Why it’s needed: The placeholder fragments are confusing
  • How it works: The placeholder fragments did not do anything so removing them is not an issue.

Related Issue(s)


Type of Change

  • Bug fix
  • New feature
  • Enhancement
  • Refactor
  • Documentation
  • Tests
  • Other: ________

Checklist

  • Code follows project style guidelines
  • Self-reviewed changes
  • Tests added/updated
  • Documentation added/updated
  • All tests and gating checks pass

AI Disclosure

[ ] I have used AI in the creation of this PR.

Signed-off-by: liamfallon <liam.fallon@est.tech>
Copilot AI review requested due to automatic review settings May 5, 2026 13:10
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for porch ready!

Name Link
🔨 Latest commit 47a5a09
🔍 Latest deploy log https://app.netlify.com/projects/porch/deploys/69fad374074d8c0008e0c8bc
😎 Deploy Preview https://deploy-preview-968--porch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

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

This PR removes the previously non-functional “subpackage” placeholders from Porch’s package init flow and its v1alpha2 API surface, reducing confusion ahead of upcoming real subpackage upgrade support.

Changes:

  • Removed subpackage from init task/spec handling and from v1alpha2 API/CRD + CLI API reference docs.
  • Kept v1alpha1 subpackage for backward compatibility but marked it deprecated, and updated v1alpha1↔porch conversions accordingly.
  • Updated generated schemas/conversion code and removed the now-obsolete subpackage init test.

Reviewed changes

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

Show a summary per file
File Description
pkg/task/init.go Removes init-time subpackage directory handling; always initializes at /.
pkg/engine/engine.go Stops setting an explicit empty Subpackage on init task creation.
docs/content/en/docs/7_cli_api/api-ref.md Removes subpackage from the published API reference table.
controllers/packagerevisions/pkg/controllers/packagerevision/source.go Removes v1alpha2 init subpackage path handling; init always at /.
controllers/packagerevisions/pkg/controllers/packagerevision/source_test.go Drops the subpackage init test that no longer applies.
controllers/config/crd/bases/config.porch.kpt.dev_packagevariants.yaml Updates CRD description text for stderr (removes stale placeholder wording).
api/porch/v1alpha2/source_types.go Removes Subpackage from PackageInitSpec.
api/porch/v1alpha2/porch.kpt.dev_packagerevisions.yaml Removes subpackage schema from v1alpha2 PackageRevision source init spec.
api/porch/v1alpha1/zz_generated.conversion.go Updates conversions to drop subpackage when converting into porch types; adjusts some list/pointer conversions.
api/porch/v1alpha1/types.go Deprecates (but retains) v1alpha1 Subpackage field and removes other stale commented placeholders.
api/porch/v1alpha1/conversion.go Adds a manual conversion shim for PackageInitTaskSpec to handle the removed peer field.
api/porch/types.go Removes Subpackage from porch PackageInitTaskSpec and trims placeholder comments in clone spec.
api/generated/openapi/zz_generated.openapi.go Updates generated OpenAPI descriptions to reflect deprecation/removals.

Comment thread api/porch/v1alpha1/types.go Outdated
Comment thread api/porch/v1alpha1/types.go Outdated
Comment thread api/porch/types.go
liamfallon and others added 2 commits May 5, 2026 14:37
Copilot AI review requested due to automatic review settings May 6, 2026 05:36
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@efiacor efiacor merged commit d213958 into kptdev:main May 7, 2026
33 of 35 checks passed
@efiacor efiacor deleted the remove-subpackage-crud branch May 7, 2026 13:17
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.

Remove subpackage placeholders

4 participants