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

add memory filter lable select #526

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

lengrongfu
Copy link
Contributor

What type of PR is this?
/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes # #380

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

add memory filter for lables select.

@clusterpedia-bot
Copy link

Hi @lengrongfu,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

@clusterpedia-bot clusterpedia-bot added the kind/feature New feature label May 17, 2023
@lengrongfu lengrongfu force-pushed the feat/add-api-resources-api branch 2 times, most recently from ccd614b to bdbff83 Compare May 18, 2023 06:03
@wuyingjun-lucky
Copy link
Member

/cc @xyz2277

@clusterpedia-bot clusterpedia-bot requested a review from xyz2277 May 19, 2023 06:14
@lengrongfu
Copy link
Contributor Author

@xyz2277 TBR.

@xyz2277
Copy link
Contributor

xyz2277 commented Jun 21, 2023

@lengrongfu, thanks for your contribution. It's ok for list, can you add this feature to the watch too?

@lengrongfu
Copy link
Contributor Author

Can I submit a new pr to add watch ?

@Iceber Iceber self-requested a review June 27, 2023 02:31
@lengrongfu lengrongfu force-pushed the feat/add-api-resources-api branch 2 times, most recently from d4bfb0b to b2f733b Compare June 28, 2023 10:14
// filterLabelSelector returns true if the given label selector matches the given label set. else false.
func filterLabelSelector(labelSelector labels.Selector, label labels.Set) bool {
if labelSelector != nil && label != nil && !labelSelector.Matches(label) {
return true
Copy link
Member

Choose a reason for hiding this comment

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

should be true if the label is nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

return true is filter current item, when label is nil should return false.

Signed-off-by: lengrongfu <1275177125@qq.com>
@lengrongfu lengrongfu force-pushed the feat/add-api-resources-api branch from b2f733b to 77d09f2 Compare July 6, 2023 01:55
@xyz2277
Copy link
Contributor

xyz2277 commented Jul 13, 2023

Can I submit a new pr to add watch ?

ok, don't forget it~

@xyz2277
Copy link
Contributor

xyz2277 commented Jul 13, 2023

/lgtm

@clusterpedia-bot clusterpedia-bot added the lgtm Look good to me label Jul 13, 2023
@Iceber
Copy link
Member

Iceber commented Jul 14, 2023

@lengrongfu Thanks for your contribution

@Iceber Iceber merged commit ca0e3fe into clusterpedia-io:main Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature lgtm Look good to me size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants