You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Portal slice 4: Expiration, Policies and Capacity: API first, then the tabs #302
Part of #20. Today on CRC every tab but Requests shows "This tab is not on the API yet." (cmapi-portal-ui/src/portal/PortalApp.tsx:185). The tab map is cmapi-portal-ui/MOCKUP-CONTRACT.md, "Tabs". Build with /mockup-to-page-react and prove with /test-ui: content and states against the mockup at 390, 820 and 1440 px in both themes, every UI state (loading, empty, forbidden, error, 401), permissions from GET /api/v1/me, browser suites in Chromium and the installed Chrome, mutants killed, and a screenshot through the CRC Route.
None of the three has a list endpoint in the contract (checked 2026-11-15). Only POST .../expiration:extend exists. Design and build each endpoint through the delivery loop, with OpenAPI, samples, docs/04 and the contract gate, then the tab:
For the Policies part of slice 4 (owner, 2026-11-17): Kyverno defaults to audit (#342), and cmapi's own checks refuse. So the Policies tab is where Kyverno's detail shows: the clusters' PolicyReport results (fail/warn per policy and resource) and, beside cmapi's plan-time refusals, Kyverno's plan-time findings as warnings with policy, rule and message. GET /api/v1/policies/results and /rejections are still to build; #333 widens what the policies check, so the tab must not hard-code the policy list.
Also for the Policies tab: show the policy engine and each environment's mode (enforce, audit, off) and the pinned Kyverno version, from the existing policy object of the integrations endpoint (schema Policy: engine, environments, kyvernoVersion), so a reader knows whether a Kyverno result was a warning (audit) or a denial (enforce). With engine none, the tab says Kyverno is off and shows cmapi's refusals only.
GET /api/v1/policies/results and /rejections (rejections store the username only), and the tab. CRC shows "off the bundle", 31 missing, because cmapi's bundle is not delivered there. Kind proof with Kyverno v1.20 audit: real fail rows
Live from the watch, by the owner's decision of 2026-11-18. Snapshots are #21; usage and history are null in notMeasured. GET /api/v1/capacity and the tab. CRC: 56 % CPU and 45 % memory against the simulated size, the node's allocatable beside it, every figure equal to oc
Activity
ephico2real2 commentedon Nov 17, 2026
Found under #318: #319, #320, #321.
ephico2real2 commentedon Nov 17, 2026
For the Policies part of slice 4 (owner, 2026-11-17): Kyverno defaults to audit (#342), and cmapi's own checks refuse. So the Policies tab is where Kyverno's detail shows: the clusters' PolicyReport results (fail/warn per policy and resource) and, beside cmapi's plan-time refusals, Kyverno's plan-time findings as warnings with policy, rule and message. GET /api/v1/policies/results and /rejections are still to build; #333 widens what the policies check, so the tab must not hard-code the policy list.
ephico2real2 commentedon Nov 17, 2026
Also for the Policies tab: show the policy engine and each environment's mode (enforce, audit, off) and the pinned Kyverno version, from the existing
policyobject of the integrations endpoint (schemaPolicy: engine, environments, kyvernoVersion), so a reader knows whether a Kyverno result was a warning (audit) or a denial (enforce). With engine none, the tab says Kyverno is off and shows cmapi's refusals only.ephico2real2 commentedon Nov 17, 2026
Found under the Policies part (PR #384): #385, a service test that names revision 0004 as "newer"; migration 0006 exposes it.
Policies (#302): the records, the map and its figures, the mutants, t…
Policies (#302): reports read before the namespaces are listed are lo…
Review of #384: OB3's fixes, unknown counts null, a chunked list redu…
Merge pull request #384 from ephico2real2/portal/302-policies
Portal map: GET /api/v1/capacity is built, so 19 built and 4 not buil…
Review of #400 (OB3): one locked read of cache and ledger, refuse unu…
Merge pull request #400 from ephico2real2/portal/302-capacity
ephico2real2 commentedon Nov 18, 2026
Proof for closure (coordinator, 2026-11-18). All three tabs are on the API on CRC, which runs
1537977(OB1 run 23).GET /api/v1/expirationswith:extend,:set,:makePermanent, and the tabGET /api/v1/policies/resultsand/rejections(rejections store the username only), and the tab. CRC shows "off the bundle", 31 missing, because cmapi's bundle is not delivered there. Kind proof with Kyverno v1.20 audit: realfailrowsnotMeasured.GET /api/v1/capacityand the tab. CRC: 56 % CPU and 45 % memory against the simulated size, the node's allocatable beside it, every figure equal tooccmapi/contract/openapi.jsonwith samples and docs/04 examples; theapi-contractCI job passed on each merge/me, 390/820/1440 in both themes, Chromium and installed Chrome, mutantsdocs/reviews/2026-11-17-issue-302-policies/,docs/reviews/2026-11-18-issue-302-capacity/workbench/cmapi/ob1-run21/screens/,ob1-run23/screens/Not proven on CRC: dark theme and 820 px through the Route (proven in CI and locally only); ETag 304 revalidation.
Open follow-ups, not blocking: #382, #383, #402, #403, #404, #407.
ephico2real2 commentedon Nov 18, 2026
Closed with the owner's approval (2026-11-18), on the proof in the comment above.
Merge pull request #427 from ephico2real2/records/2026-11-18c