-
Notifications
You must be signed in to change notification settings - Fork 541
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
Add K8s version query function through Tongyi Lingma analysis #1135
base: main
Are you sure you want to change the base?
Conversation
利用通义灵码分析代码存在的问题,同时自动给出优化建议。(边界条件处理、异常处理)
|
这个PR是解决的什么问题,有对应issue吗? |
Add K8s version query function through Tongyi Lingma analysis |
QueryParams parseParameters(absl::string_view data, size_t start, | ||
bool decode_params) { | ||
QueryParams params; | ||
class QueryParams { |
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.
修改这里是要干什么?
@@ -52,11 +52,16 @@ var ( | |||
"Total invalid ingresses known to pilot.", | |||
monitoring.WithLabels(clusterTag, invalidType), | |||
) | |||
|
|||
queryK8sVersionFail = monitoring.NewSum( |
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.
这个指标没有意义
@@ -81,6 +163,45 @@ func NetworkingIngressAvailable(client kube.Client) bool { | |||
return runningVersion.AtLeast(version118) | |||
} | |||
|
|||
func NetworkingIngressAvailable(client kube.Client, retryOptions ...RetryOption) bool { |
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.
这么做的好处在哪里?原本机制有什么问题?
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews