chore(topograph): rename backend switch tiers#208
Merged
Merged
Conversation
Signed-off-by: Dmitry Shmulevich <dshmulevich@nvidia.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #208 +/- ##
=======================================
Coverage 65.83% 65.83%
=======================================
Files 81 81
Lines 4484 4484
=======================================
Hits 2952 2952
Misses 1419 1419
Partials 113 113 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Greptile OverviewGreptile SummaryThis PR performs a comprehensive renaming of network topology terminology across the entire codebase, changing Key Changes
ImpactThis is a breaking change that affects:
The renaming is semantically accurate - "leaf" better describes edge switches directly connected to compute nodes, and "core" better describes top-tier switches in a network hierarchy. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User as User/K8s Cluster
participant Main as cmd/topograph/main.go
participant K8s as pkg/engines/k8s/labeler.go
participant Provider as Cloud Provider (AWS/GCP/OCI/etc)
participant Topology as pkg/topology/graph.go
participant Node as Kubernetes Node
User->>Main: Start topograph with CLI flags
Note over Main: Parse flags:<br/>-k8s-topology-key-leaf<br/>-k8s-topology-key-spine<br/>-k8s-topology-key-core
Main->>K8s: InitLabels(accelerator, leaf, spine, core)
Note over K8s: Store label names:<br/>labelLeaf, labelSpine, labelCore
Main->>Provider: Request instance topology
Provider->>Topology: Create InstanceTopology
Note over Topology: Populate fields:<br/>LeafID, SpineID, CoreID
Provider-->>Main: Return ClusterTopology
Main->>Topology: ToThreeTierGraph()
Note over Topology: Build network hierarchy<br/>using LeafID/SpineID/CoreID
Topology-->>Main: Return Vertex graph
Main->>K8s: ApplyNodeLabels()
K8s->>Node: Add labels to nodes
Note over Node: Apply labels:<br/>network.topology.nvidia.com/leaf<br/>network.topology.nvidia.com/spine<br/>network.topology.nvidia.com/core
Node-->>K8s: Labels applied
K8s-->>Main: Success
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.