-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add option to select k8s nodes for topology config #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Greptile OverviewGreptile SummaryThis PR adds support for filtering Kubernetes nodes using label selectors in topology configuration. The changes restructure the configuration format from flat ( Key Changes:
The implementation is consistent across all components and maintains backward compatibility by making Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant HelmChart
participant NodeObserver
participant TopographServer
participant Engine
participant Provider
participant K8sAPI
User->>HelmChart: Deploy with nodeSelector config
HelmChart->>NodeObserver: Configure with provider.params.nodeSelector
HelmChart->>TopographServer: Deploy topology service
NodeObserver->>TopographServer: POST /v1/generate (Provider + Engine params)
TopographServer->>Engine: Initialize with engine.params (including nodeSelector)
TopographServer->>Provider: Initialize with provider.params (including nodeSelector)
Engine->>K8sAPI: GetNodes(ctx, client, nodeListOpt)
Note over Engine,K8sAPI: Filter nodes using label selector
K8sAPI-->>Engine: Filtered node list
Provider->>K8sAPI: GetNodes(ctx, client, nodeListOpt)
Note over Provider,K8sAPI: Filter nodes using label selector
K8sAPI-->>Provider: Filtered node list
Provider-->>TopographServer: Topology tree with filtered nodes
Engine-->>TopographServer: Apply topology to filtered nodes
TopographServer-->>NodeObserver: Topology configuration result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
21 files reviewed, no comments
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #184 +/- ##
==========================================
+ Coverage 65.03% 65.26% +0.23%
==========================================
Files 77 77
Lines 4187 4221 +34
==========================================
+ Hits 2723 2755 +32
- Misses 1357 1359 +2
Partials 107 107 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2399940 to
057a165
Compare
Signed-off-by: Dmitry Shmulevich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
29 files reviewed, no comments
No description provided.