-
Notifications
You must be signed in to change notification settings - Fork 168
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
feat:Add load filtering to clusterLogConfig and exclude namespaces #643
Conversation
return selector, nil | ||
} | ||
|
||
// GetPodsByLabelSelector 根据label 筛选出全部的pod |
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.
注释都改成英文?
PodSelector `json:",inline"` | ||
NodeSelector `json:",inline"` | ||
NamespaceSelector `json:",inline"` | ||
WorkloadSelector []WorkloadSelector `json:"workload_selector,omitempty"` |
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.
改成驼峰的方式?
|
||
func (p *filterCacheChecker) checkOwner(owner metav1.OwnerReference, namespace string) (bool, error) { | ||
|
||
// 如果没有选workloadSelector,那么默认是全部符合的 |
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.
英文
} | ||
} | ||
|
||
// Confirm 确认pod 是否满足lgc的规则 |
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.
英文
return false, nil | ||
} | ||
|
||
// 检查label |
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.
英文
return ret, nil | ||
} | ||
|
||
// Filter 过滤pod |
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.
英文
return selector, nil | ||
} | ||
|
||
// GetPodsByLabelSelector select pod by label |
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.
英文
Proposed Changes:
Which issue(s) this PR fixes:
Fixes #
Additional documentation:
过滤命名空间
选择负载