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 filters to forward only a part of the loaded configuration #9

Merged
merged 4 commits into from Jul 22, 2023

Conversation

sunsided
Copy link
Owner

@sunsided sunsided commented Jul 22, 2023

Targets can now be selected through prefix filters specified on the command-line. Only targets (and target names) starting with the specified prefixes will be forwarded. In the following example, services starting with foo and bar will be selected:

k8sfwd foo bar

Filters can operate in combination with tags as well:

k8sfwd -t test foo bar

In this case, only targets matching the prefix and the labels will be selected.

@sunsided sunsided added the enhancement New feature or request label Jul 22, 2023
@sunsided sunsided self-assigned this Jul 22, 2023
@sunsided sunsided marked this pull request as ready for review July 22, 2023 11:40
@sunsided sunsided merged commit 8cf70f0 into main Jul 22, 2023
1 check passed
@sunsided sunsided deleted the feature/filter branch July 22, 2023 11:40
sunsided added a commit that referenced this pull request Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant