-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
query: add --endpoint-strict
flag to statically configure endpoints
#4874
Conversation
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
--endpoint-strict
flag to add statically configured endpoints--endpoint-strict
flag to statically configure endpoints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go 🚀 Let's just not forget to update the CHANGELOG, otherwise good to go 🙌.
for _, endpoint := range strictEndpoints { | ||
if dns.IsDynamicNode(endpoint) { | ||
return errors.Errorf("%s is a dynamically specified endpoint i.e. it uses SD and that is not permitted under strict mode. Use --endpoint for this", endpoint) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Having this right after doing the same for strictStores
would read tiny bit better 😊
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
This PR completes 3rd task from this list.
Changes
--endpoint-strict
flag (similar to--store-strict
) which can be used to add statically configured endpoints.