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

query: add --endpoint-strict flag to statically configure endpoints #4874

Merged
merged 3 commits into from
Nov 16, 2021

Conversation

hitanshu-mehta
Copy link
Contributor

This PR completes 3rd task from this list.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • Added --endpoint-strict flag (similar to --store-strict) which can be used to add statically configured endpoints.

Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
@hitanshu-mehta hitanshu-mehta changed the title query: add --endpoint-strict flag to add statically configured endpoints query: add --endpoint-strict flag to statically configure endpoints Nov 16, 2021
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
GiedriusS
GiedriusS previously approved these changes Nov 16, 2021
Copy link
Collaborator

@matej-g matej-g left a 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 🙌.

Comment on lines +406 to +411
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)
}
}

Copy link
Collaborator

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>
Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

❤️

@GiedriusS GiedriusS enabled auto-merge (squash) November 16, 2021 16:23
@GiedriusS GiedriusS merged commit 16a8bc3 into thanos-io:main Nov 16, 2021
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.

3 participants