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

Allow setting excludeNamespaces #3285

Closed
wants to merge 2 commits into from

Conversation

hzxuzhonghu
Copy link
Member

@hzxuzhonghu hzxuzhonghu requested a review from a team as a code owner July 30, 2024 08:44
@istio-policy-bot
Copy link

😊 Welcome @hzxuzhonghu! This is either your first contribution to the Istio api repo, or it's been
a while since you've been here.

You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines
by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 30, 2024
@istio-testing
Copy link
Collaborator

@hzxuzhonghu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
release-notes_api 00bad17 link false /test release-notes

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-sigs/prow repository. I understand the commands that are listed here.

// in these namespaces are all ignorred. It works in collaboration with `discoverySelectors`
// A request to the service or pod can succeed or fail depends on the `outboundTrafficPolicy`.
// If `outboundTrafficPolicy` is ALLOW_ANY, it can succeed, otherwise it can fail.
repeated string exclude_namespaces = 67;
Copy link
Contributor

Choose a reason for hiding this comment

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

which one takes precedence if a namespace is listed here but is selected by discovery selector?

Copy link
Member Author

Choose a reason for hiding this comment

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

will still be excluded

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need another selector on top of discoverySelectors?

Copy link
Member

Choose a reason for hiding this comment

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

discoverySelectors can already do this with kubernetes.io/metadata.name NOT IN <some name>

Copy link
Member Author

@hzxuzhonghu hzxuzhonghu Jul 31, 2024

Choose a reason for hiding this comment

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

If use discoverySelectors, user should set all the namespaces they want to use. On the contrary, it would be much simpler to exclude a small bunch of namespaces

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

That sounds ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants