Skip to content

Feat/bnk topology canvas - #5

Merged
JLCode-tech merged 9 commits into
JLCode-tech:mainfrom
tareqaminul:feat/bnk-topology-canvas
Oct 26, 2026
Merged

JLCode-tech merged 9 commits into
JLCode-tech:mainfrom
tareqaminul:feat/bnk-topology-canvas

Conversation

@tareqaminul

Copy link
Copy Markdown

Description

A clear and concise description of the changes in this Pull Request.

Fixes / Implements: #[Issue Number]


Architectural Decision Record (ADR)

  • This PR includes or updates an ADR in docs/adr/ADR-<issue>-<title>.md (Required for non-trivial feature/architecture changes).
  • N/A (Bug fix or minor docs tweak).

Type of Change

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to break)
  • Documentation update

Verification & Testing

Describe the tests you ran to verify your changes:

  1. make quick-check passes cleanly
  2. make pre-push passes cleanly
  3. Added unit/component tests for new logic

Checklist

  • My code follows the project's code style and formatting guidelines.
  • I have updated documentation where necessary.
  • I have generated updated openapi types if modifying backend routes/schemas (make openapi-types).

tareqaminul and others added 9 commits October 24, 2026 23:44
Add GET /api/k8s/clusters/{id}/f5bnk/canvas, a read-only view of BNK
resources as a typed relationship graph for the upcoming Topology Canvas.

- services/bnk/canvas_graph.py: pure builder ported from Gateway Atlas
  rules. Exact group|version|kind|namespace|name identities; parent,
  backend, ReferenceGrant, policy targetRefs/extensionRefs,
  GatewaySettings -> Infra, EgressGateway, CNEInstance and SPK data-plane
  relationships; listener attachment checks; findings with remediation.
- Policies match Gateways by namespace and name (the tree view matches by
  name only, so same-named Gateways share policies there).
- Secrets appear only as reference placeholders; no Secret is read.
- Reuses fetch_all_bnk_data and its cache.
- Table-driven tests per rule and a golden graph for an anonymized
  sample cluster; docs/atlas-canvas/seed-kind.sh seeds it into kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add "Topology Canvas" under F5 BNK -> Topology & Insights
(/bnk?view=view-canvas), drawing the /f5bnk/canvas graph on reactflow v11.

- bnk-canvas/: Families layout, relationship placement, edge styles,
  label placement and skyline packing ported from Gateway Atlas
  (Apache-2.0); grant and network relationships and EgressGateway rows
  added for BIG-IP Next.
- Cards show kind, name, readiness and a first fact, with finding badges;
  missing references are dashed placeholders. Namespace and class frames,
  legend, minimap, zoom/fit/lock controls, light and dark themes.
- Toolbar with counts, Secret-reference toggle and forced refresh; a
  findings strip that selects the affected resource.
- Clicking a card opens the existing F5BNKDetailPanel; placeholders and
  Secrets are never opened.
- Ported Vitest layout suites plus an MSW component test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Secrets and ClusterIssuers are never read by the canvas, so their
placeholder cards said "not found" without evidence. Only broken
references now say "not found"; unresolved ones say "not read".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Revert unrelated Prettier reformatting from the canvas commit; only the
getBnkCanvas method and its type import remain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
List existing Forge bugs and hygiene issues the Topology Canvas work
surfaced, with evidence, impact and a suggested fix for each. No Forge
code changes; the canvas exercise stays visualization only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ogy canvas

Show the TMM trafficStats that /f5bnk/data already returns on Gateway,
egress and firewall policy cards and on listener route edges. Selecting
a card now highlights its whole traffic chain (switchable back to direct
neighbours), and a canvas control saves the full graph as a standalone
vector SVG in the current theme.

The counters reuse the BNK data query the F5 BNK page already prefetches,
so the canvas adds no cluster calls. Also theme the React Flow
attribution and stop nesting the toolbar switches inside labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a user guide for the Topology Canvas with screenshots from the
anonymized kind lab, list it in the user guide and README, record the
plan status, and add two findings about existing Forge behavior: the
license status 502 without CWC, and BNK views that create a client pod
and read Secret data on clusters with CWC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… topology canvas

- Draw InferencePool → Endpoint Picker Service (endpoint-picker) and
  F5EPP → InferencePool, with pool conditions aggregated over parents and
  facts for both kinds.
- List F5BnkGateways read-only for the canvas, since Forge's registry does
  not include them, so a missing one is reported as a broken reference.
- Add controllers=all|bnk to /f5bnk/canvas; "all" (default) draws Istio,
  NGINX and other Gateways beside BIG-IP Next, each in its own class band.
- Add an "Other controllers" switch, anonymized fixture rows, table-driven
  tests and an updated golden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants