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

(feat) Added address ignore options #15

Closed
wants to merge 1 commit into from

Conversation

PrimalPimmy
Copy link
Member

@PrimalPimmy PrimalPimmy commented Jul 6, 2023

For the docker container. I added a --ignore flag which ignores addresses mentioned there when running kubetls.

image

SUGGESTION: We can further improve this ignore function by making it have sub arguments like ignoring certain statuses like "NOCONN".

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
for ignore_address in "${ignore_array[@]}"; do
[[ "$line" == *"$ignore_address"* ]] && ignore=true && break
done
[[ "$ignore" == true ]] && continue
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets keep a count of ignored addresses and show the count of "ignored addresses" in the final summary.

@nyrahul
Copy link
Contributor

nyrahul commented Jul 9, 2023

We need few more ways of ignoring as mentioned in #8

--ign-name ... ignores based on namespace, service-name, port-name etc.
--ign-address ... ignores based on address spec (this is currently implemented).

Also it would be better to add test framework to kubeTLS before merging this PR. Such PRs could greatly benefit from automated tests.

@@ -30,14 +30,15 @@ EOF

parse_cmdargs()
{
OPTS=`getopt -o f:h --long csv:,infile:,json:,help -n 'parse-options' -- "$@"`
OPTS=`getopt -o f:h --long csv:,infile:,json:,ignore:,help -n 'parse-options' -- "$@"`
Copy link
Contributor

Choose a reason for hiding this comment

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

the details of ignore options are not added to usage/help.

@PrimalPimmy PrimalPimmy closed this by deleting the head repository Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants