Remove string_from_ls passthrough (DSK-128)#169
Merged
Conversation
Call label_selector_from_meta directly at five selector sites and delete the one-line wrapper. Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughcrates/rustern-core/src/discovery/workload_selector.rsにおいて、内部ラッパー関数 Changes
重大度: 低(内部関数の呼び出し経路変更のみで、ロジックや出力形式に変更なし。正しさ・非同期処理・K8sリソース挙動への影響なし) Sequence Diagram(s)sequenceDiagram
participant WorkloadSelector
participant LabelSelectorFromMeta
WorkloadSelector->>LabelSelectorFromMeta: spec.selector, spec.template, ResourceKind, workload_name
LabelSelectorFromMeta-->>WorkloadSelector: ラベルセレクタ文字列
Possibly related issues
🚥 Pre-merge checks | ❌ 2❌ Failed checks (2 warnings)
Comment |
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.
Summary
string_from_lsand calllabel_selector_from_metadirectly from deployment/statefulset/daemonset/replicaset/job selectors.Test plan
cargo test -p rustern-core --lib discovery::workload_selectorMade with Cursor
Summary by CodeRabbit