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

Remove redundant namespace filters #3877

Closed

Conversation

eloyekunle
Copy link
Contributor

In resourcechannels.go, REST queries already filtered by namespace should no longer be filtered by the filtering loop.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 6, 2019
@eloyekunle eloyekunle force-pushed the feat/resourcechannels-cleanup branch from e5c641d to acd3231 Compare June 11, 2019 20:49
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: eloyekunle
To complete the pull request process, please assign cheld
You can assign the PR to them by writing /assign @cheld 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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Jun 11, 2019

Codecov Report

Merging #3877 into master will increase coverage by 0.37%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3877      +/-   ##
==========================================
+ Coverage   46.56%   46.94%   +0.37%     
==========================================
  Files         173      173              
  Lines        8066     8001      -65     
  Branches       59       59              
==========================================
  Hits         3756     3756              
+ Misses       4080     4015      -65     
  Partials      230      230
Impacted Files Coverage Δ
...rc/app/backend/resource/common/resourcechannels.go 0% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89f56f0...acd3231. Read the comment docs.

@maciaszczykm
Copy link
Member

Not sure about this anymore. Indeed ToRequestParam will filter with namespaces but it can be also set to all if there are more than 2 namespaces. Matches works in a different way, filtering using specific namespaces from NamespaceQuery.

@floreks Was this intended? Can we pick let's say 2 or 3 namespaces somewhere (not all of them)?

@eloyekunle
Copy link
Contributor Author

eloyekunle commented Jun 12, 2019

You're right @maciaszczykm, ToRequestParam sets to ALL if there are more than 1 namespace. So the filters are indeed necessary.

@maciaszczykm
Copy link
Member

Okay then, let's close it as it has some function.

/close

@k8s-ci-robot
Copy link
Contributor

@maciaszczykm: Closed this PR.

In response to this:

Okay then, let's close it as it has some function.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@eloyekunle eloyekunle deleted the feat/resourcechannels-cleanup branch June 17, 2019 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants