Skip to content

PackageRevision controller architecture docs#971

Open
efiacor wants to merge 5 commits into
kptdev:mainfrom
Nordix:pr_ctr_docs_draft
Open

PackageRevision controller architecture docs#971
efiacor wants to merge 5 commits into
kptdev:mainfrom
Nordix:pr_ctr_docs_draft

Conversation

@efiacor

@efiacor efiacor commented May 6, 2026

Copy link
Copy Markdown
Contributor

Title

PackageRevision controller architecture docs


Description

  • What changed:
    Add v1alpha2 architecture documentation for the PackageRevision controller.

New pages:

  • packagerevision-controller/_index.md: controller overview

  • packagerevision-controller/design.md: internal design

  • packagerevision-controller/interactions.md: component interactions

  • Why it’s needed: New docs

  • How it works: See above


Related Issue(s)

  • Closes/Fixes #

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

Testing Instructions (Optional)


Additional Notes (Optional)

  • Known issues:
  • Further improvements:
  • Review notes:

AI Disclosure

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

@efiacor efiacor self-assigned this May 6, 2026
@efiacor efiacor added the documentation Improvements or additions to documentation label May 6, 2026
@netlify

netlify Bot commented May 6, 2026

Copy link
Copy Markdown

Deploy Preview for porch ready!

Name Link
🔨 Latest commit 4098450
🔍 Latest deploy log https://app.netlify.com/projects/porch/deploys/69fb9322db155d000835451e
😎 Deploy Preview https://deploy-preview-971--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.

Comment thread docs/content/en/docs/5_architecture_and_components/deployment-modes.md Outdated
Comment thread docs/content/en/docs/5_architecture_and_components/deployment-modes.md Outdated
Comment thread docs/content/en/docs/5_architecture_and_components/deployment-modes.md Outdated
Comment thread docs/content/en/docs/5_architecture_and_components/deployment-modes.md Outdated
Comment thread docs/content/en/docs/5_architecture_and_components/deployment-modes.md Outdated
@Catalin-Stratulat-Ericsson

Copy link
Copy Markdown
Contributor

also no functionality section for this component like all the others even other controllers? was this intentional or just missed?

@efiacor
efiacor marked this pull request as draft May 15, 2026 07:27
@efiacor
efiacor force-pushed the pr_ctr_docs_draft branch from 4098450 to 6e949f5 Compare July 1, 2026 09:25
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for kpt-porch ready!

Name Link
🔨 Latest commit 490a956
🔍 Latest deploy log https://app.netlify.com/projects/kpt-porch/deploys/6a5f53ba2bdc8800080864f5
😎 Deploy Preview https://deploy-preview-971--kpt-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.

@efiacor
efiacor marked this pull request as ready for review July 1, 2026 09:27
@efiacor
efiacor requested review from a team July 1, 2026 09:27
@efiacor
efiacor requested a review from kispaljr as a code owner July 1, 2026 09:27
@dosubot dosubot Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jul 1, 2026
@github-actions
github-actions Bot requested a review from Copilot July 1, 2026 09:27
@dosubot

dosubot Bot commented Jul 1, 2026

Copy link
Copy Markdown

📄 Knowledge review

✏️ Suggested updates

1 page suggestion needs review.

Page Library Status
faq /kpt/blob/main/documentation/content/en/faq.md kpt 🔀 PR opened

Leave Feedback Ask Dosu about porch Add Dosu to your team

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds draft architecture documentation for the v1alpha2 (CRD-based) PackageRevision controller and updates the docs site build/layout to better support versioned docs and navigation.

Changes:

  • Adds new architecture + functionality docs for the PackageRevision controller and a new “Working with CRD-Based PackageRevisions” tutorial section.
  • Updates architecture/overview/config docs to reflect the CRD-based orchestration path and controller responsibilities.
  • Improves the docs site UX/build: version selector override, foldable + resizable sidebar, heading rendering changes, draft handling configs, and versioned docs build script tweaks.

Reviewed changes

Copilot reviewed 37 out of 37 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
scripts/build-versioned-docs.sh Ensures consistent nav by copying key _index.md files from main into versioned builds.
README.md Updates documentation link to the new site URL.
docs/README.md Updates docs landing reference and rendered-site URL.
docs/layouts/partials/navbar-version-selector.html Overrides Docsy version selector behavior for / links.
docs/layouts/partials/hooks/body-end.html Adds client-side sidebar scroll/width persistence and resize behavior.
docs/layouts/_default/_markup/render-heading.html Switches heading rendering to Docsy partial.
docs/content/en/docs/6_configuration_and_deployments/configurations/components/porch-controllers-config.md Documents PR controller flags/env/prereqs and tuning guidance.
docs/content/en/docs/6_configuration_and_deployments/configurations/components/_index.md Updates controllers component description to include PackageRevisions.
docs/content/en/docs/6_configuration_and_deployments/configurations/_index.md Updates controllers config summary to include PR controller.
docs/content/en/docs/5_architecture_and_components/porch-apiserver/_index.md Adjusts nav ordering (weight).
docs/content/en/docs/5_architecture_and_components/package-cache/_index.md Adjusts nav ordering (weight).
docs/content/en/docs/5_architecture_and_components/function-runner/_index.md Adjusts nav ordering (weight).
docs/content/en/docs/5_architecture_and_components/engine/_index.md Adjusts nav ordering (weight).
docs/content/en/docs/5_architecture_and_components/controllers/repository-controller/interactions.md Documents v1alpha2 CRD creation behavior and gating controls.
docs/content/en/docs/5_architecture_and_components/controllers/repository-controller/_index.md Adds repository annotation explanation for v1alpha2 CRD-based management.
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/interactions.md New: component interaction model and end-to-end data flows.
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/functionality/source-execution.md New: source execution behaviors (init/clone/copy/upgrade).
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/functionality/rendering.md New: render triggers, concurrency limiting, stale render handling, status semantics.
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/functionality/lifecycle-management.md New: lifecycle transitions, revision labels, deletion gating/finalizers.
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/functionality/_index.md New: functionality section index/overview.
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/design.md New: internal controller design and SSA field manager partitioning.
docs/content/en/docs/5_architecture_and_components/controllers/packagerevision-controller/_index.md New: controller overview and relationship to other components.
docs/content/en/docs/5_architecture_and_components/controllers/_index.md Reorders and adds PR controller entry under Controllers.
docs/content/en/docs/5_architecture_and_components/_index.md Reframes architecture around two orchestration paths (v1alpha1 vs v1alpha2).
docs/content/en/docs/4_tutorials_and_how-tos/working_with_crd_based_packagerevisions/differences.md New: user-facing differences between aggregated API and CRD-based model.
docs/content/en/docs/4_tutorials_and_how-tos/working_with_crd_based_packagerevisions/creating-packages.md New: kubectl-based workflow (create/push/render/publish/delete).
docs/content/en/docs/4_tutorials_and_how-tos/working_with_crd_based_packagerevisions/_index.md New: enablement + prerequisites + next steps for CRD-based workflow.
docs/content/en/docs/4_tutorials_and_how-tos/_index.md Adds entry point to the new v1alpha2 CRD-based tutorials.
docs/content/en/docs/12_contributing/docs-contribution/_index.md Adds guidance for documenting unreleased features with Hugo drafts.
docs/content/en/docs/1_overview/_index.md Updates high-level overview to reflect architecture direction and controllers.
docs/content/en/docs/_index.md Updates docs landing page intro text.
docs/config/production.toml Adds placeholder config to avoid Netlify config-merge warnings.
docs/config/development.toml Enables buildDrafts for preview/development builds.
docs/config.toml Adjusts markup behavior and enables foldable sidebar menu.
docs/assets/scss/_sidebar-toc.scss Tweaks sidebar TOC sizing/positioning.
docs/assets/scss/_sidebar-left.scss Makes left sidebar wider/resizable; updates version selector styling and scrolling behavior.
docs/assets/scss/_main.scss Ensures main layout flexes correctly when sidebar is resized.

Comment thread docs/content/en/docs/_index.md
Comment thread docs/content/en/docs/1_overview/_index.md
Comment thread docs/content/en/docs/1_overview/_index.md Outdated
Comment thread docs/layouts/partials/navbar-version-selector.html Outdated
Comment thread docs/layouts/partials/hooks/body-end.html
@efiacor
efiacor force-pushed the pr_ctr_docs_draft branch from 0411000 to 9b47d85 Compare July 1, 2026 10:22
@efiacor

efiacor commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@lovesprung @Catalin-Stratulat-Ericsson
Thanks for your previous review comments.
I have done an extensive rewrite while incorporating most of them but it will need a new review once ready.

@efiacor efiacor changed the title PackageRevision controller architecture docs (draft) PackageRevision controller architecture docs Jul 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great but just a few minor changes. also maybe a small addition to the porchctl section to explain the diff's between targeting v1alpha1 vs v1alpha2 with the old vs new arch.

Comment thread docs/content/en/docs/1_overview/_index.md Outdated
Comment thread docs/content/en/docs/1_overview/_index.md Outdated
efiacor added 5 commits July 21, 2026 10:16
Add v1alpha2 architecture documentation for the PackageRevision controller
as Hugo draft pages. These render in deploy previews but are hidden from
the production build.

New pages:
- deployment-modes.md: v1alpha1 vs v1alpha2 architecture comparison
- packagerevision-controller/_index.md: controller overview
- packagerevision-controller/design.md: internal design
- packagerevision-controller/interactions.md: component interactions

Also adds docs/config/development.toml (buildDrafts=true) and
docs/config/production.toml so the existing Netlify build command
picks up environment-specific settings.
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
@efiacor
efiacor force-pushed the pr_ctr_docs_draft branch from 6f2d718 to 490a956 Compare July 21, 2026 11:10
@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good stuff 👍

@dosubot dosubot Bot added the lgtm #ededed label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm #ededed size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants