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

chore(filter-tags): pre-process filter tags #5063

Merged
merged 5 commits into from
Feb 14, 2025

Conversation

ivankatliarchuk
Copy link
Contributor

@ivankatliarchuk ivankatliarchuk commented Feb 5, 2025

Description

This is a follow-up for a pull request #5060

In previous pull-request, I found a side effect for tags filter where Tag has no Key but only value set.
For me it looks like a bug that could be a feature. Let me know if it should be supported. I've actually added the test to highlight this in previous pull request. If we keep the behaviour where key is empty and value is provided, I'll update the documentation and logic

Screenshot 2025-02-05 at 08 56 07

Design of actual pre-processing was discussed here #5042

BenchmarkZoneTagFilterMatchBasic-16    	 2593248	       460.1 ns/op
BenchmarkZoneTagFilterComplex-16    	  754824	      1474 ns/op

Checklist

  • Unit tests updated
  • End user documentation updated

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 5, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 5, 2025
@ivankatliarchuk ivankatliarchuk changed the title chore(filter-tags): pre-process tags chore(filter-tags): pre-process filter tags Feb 5, 2025
@mloiseleur
Copy link
Contributor

In previous pull-request, I found a side effect for tags filter where Tag has no Key but only value set.
For me it looks like a bug that could be a feature. Let me know if it should be supported.

TBH, I do not know. It looks like a bug to me, at first glance.
@Raffo @szuecs: wdyt ?

@Raffo
Copy link
Contributor

Raffo commented Feb 13, 2025

Pretty sure it is a bug, I can’t think of legitimate use cases. It’s true that it would be a potential breaking change, so I’d love to make sure that it gets mentioned in the release notes of the next release.

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
@ivankatliarchuk
Copy link
Contributor Author

I mention this in docs/tutorials/aws.md

@mloiseleur
Copy link
Contributor

/retest

@mloiseleur
Copy link
Contributor

I think we can merge it now.

@ivankatliarchuk Can you retrigger the go/build ci ? maybe with git push on a no edit commit ?

* master:
  test(domain-filter): simple filters on domain exclusion (kubernetes-sigs#5064)
  chore(deps): bump nosborn/github-action-markdown-cli
  ci(docs): add markdown linters and editorconfig (kubernetes-sigs#5055)
  docs: update and refactor contribution part (kubernetes-sigs#5073)
  fix(chart): update rbac for F5 transportserver source (kubernetes-sigs#5066)
  fix(chart): non-string types on svcaccount annotations (kubernetes-sigs#5067)
  Update aws.md
  fix: expand tabs in ClouDNS entry
  fix alignment
  feat(docs): add ClouDNS webhook provider to readme
  chore(deps): bump the dev-dependencies group across 1 directory with 22 updates
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
@ivankatliarchuk
Copy link
Contributor Author

Done. Rebased with master just in case

@mloiseleur
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mloiseleur

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 14, 2025
@k8s-ci-robot k8s-ci-robot merged commit 024158c into kubernetes-sigs:master Feb 14, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

4 participants