Skip to content
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

WIP: allow host collector progress in kots #4963

Closed
wants to merge 9 commits into from

Conversation

DexterYan
Copy link
Member

@DexterYan DexterYan commented Oct 23, 2024

What this PR does / why we need it:

Prerequisite PR:

  1. Adding host Collector to CollectorCount

demo: Library | Loom - 24 October 2024 - Watch Video

Which issue(s) this PR fixes:

sc-114419

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@DexterYan DexterYan added the type::feature New feature or request label Oct 23, 2024
@DexterYan DexterYan marked this pull request as draft October 23, 2024 05:06
@@ -50,3 +51,26 @@ func LoadTSKindsFromPath(dir string) (*troubleshootloader.TroubleshootKinds, err
}
return tsKinds, nil
}

func Dedup[T any](objs []T) []T {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reconsider the implementation of Dedup. Instead of using JSON marshaling to check for duplicates, consider if there's a simpler way that takes advantage of the properties of the objects you're working with (e.g., unique fields or a specific interface method). This will improve the performance and clarity of the code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I will close this PR and update the change in #4958

@DexterYan DexterYan closed this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants