Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 3.41 KB

khoist-pages-bootstrap.md

File metadata and controls

62 lines (50 loc) · 3.41 KB

KHoist documentation hosting

The user site is delivered by data-product-controller#425. This repository owns its GitHub settings; the product owns the content and default-branch deployment workflow.

Bootstrap prerequisite

Keep the configuration PR draft until the maintainer-approved Pages bootstrap has completed and the live site settings match the declaration. The current managed GitHub App cannot create or update Pages sites. Do not deploy the declaration against an absent site: it would produce a permission error, as diagnosed in #232.

The bootstrap writer must have the authority GitHub requires for creating the site. This change grants no permissions, creates no token and does not change the App's privileges. The maintainer must approve the one-time bootstrap procedure through this owner before it is used.

The intended settings are:

Setting Value
Repository devantler-tech/data-product-controller
Pages build type workflow (GitHub Actions)
Custom domain khoist.devantler.tech
Homepage https://khoist.devantler.tech/

The bootstrap expectation is declared in initProvider.pages. The managed App does not enforce it after adoption; the read-only repository drift check still compares its build type and domain with the Pages API and fails on a mismatch or an unreadable site. The homepage and ordinary repository settings remain enforced in forProvider. Existing KSail/platform Pages adoptions retain their separate observed-state declarations from #232.

There is no branch source block for a workflow-built site. A checked-in CNAME file does not configure an Actions-built site's custom domain.

Read the live Pages settings with gh api repos/devantler-tech/data-product-controller/pages. Confirm build_type: workflow and the exact cname. The REST response may retain a legacy source branch even for workflow builds. The pinned provider's flattenPages implementation normalizes that field to absent for workflow builds, so the declaration must omit it. The initial forProvider declaration in #615 still retried a Pages PUT: this new site had no observed provider Pages state to match. The bootstrap-only declaration avoids taking ongoing Pages write ownership. Verify successful repository reconciliation and the independent Pages drift check before treating adoption as complete; a matching manifest alone does not prove either result.

Publication ownership

The product documentation owns publishing and user-facing verification. The product keeps its DNS declaration beside its deployment files; platform tenant registration owns reconciliation through the shared writer. Follow those owners' procedures for DNS and public HTTPS. Matching Pages settings here proves configuration adoption, not that the content is publicly available.

GitHub documents the Pages API permissions and custom-domain ordering.