kubesphere / kubeeye

KubeEye aims to find various problems on Kubernetes, such as application misconfiguration, unhealthy cluster components and node problems.
https://kubesphere.io
Apache License 2.0
810 stars 126 forks source link

feat: optimize variable use and some dumplicate code #181

Closed Kevinz857 closed 2 years ago

ks-ci-bot commented 2 years ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Mathew857 To complete the pull request process, please assign zryfish after the PR has been reviewed. You can assign the PR to them by writing /assign @zryfish in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/kubesphere/kubeeye/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
Kevinz857 commented 2 years ago

@lshmouse @larryliuqing @LinuxSuRen Pls have a review

ruiyaoOps commented 2 years ago

Optimized code structure, unmodified logic

ruiyaoOps commented 2 years ago

/lgtm

ruiyaoOps commented 2 years ago

/approved