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
feat(standalone): use typed labels.Selector for endpoint selector
Replace the string-based --endpoint-selector flag with
Kubernetes-native labels.Selector to support set-based
label expressions (e.g., 'env in (prod,staging),tier!=frontend',
'key,!deprecated') in standalone mode.
- EndpointSelector type: string -> labels.Selector
- Complete(): parse flag string via labels.Parse()
- EndpointPool.Selector: map[string]string -> labels.Selector
- PoolLabelsMatch simplified with native Selector.Matches()
- podResyncAll passes Selector directly to K8s client
- All callers and tests updated for new type
Signed-off-by: shichaooutlook <shichao.outlook@gmail.com>
startCrdReconcilers:=opts.EndpointSelector==""// If endpointSelector is empty, it means it's not in the standalone mode. Then we should start the inferencePool and other CRD Reconciler.
290
+
startCrdReconcilers:=opts.EndpointSelector==nil// If endpointSelector is nil, it means it's not in the standalone mode. Then we should start the inferencePool and other CRD Reconciler.
0 commit comments