-
Notifications
You must be signed in to change notification settings - Fork 94
add support for discovery chain get method (#355) #369
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 support for discovery chain get method (#355) #369
Conversation
|
Hi @larrytamnjong , please have a look at test errors, e.g.: |
Hi @marcin-krystianc when I debug the test locally, the protocol in the response is "https". However, I don't understand why it's "tcp" here. Could you provide some guidance on how to troubleshoot this issue? |
@marcin-krystianc , I think I’ve found the issue that was causing the protocol to be "https" locally instead of "tcp." I've made an update to the test, and it should be resolved now. You can please take another look when you have time. |
Co-authored-by: Marcin Krystianc <[email protected]>
marcin-krystianc
left a comment
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 generally looks good, but I've noticed we've some CI issues due to changes for linux runners. I'll try sorting this out now.
| /// </summary> | ||
| public interface IDiscoveryChainEndpoint | ||
| { | ||
| Task<QueryResult<DiscoveryChainResponse>> Get(string name, QueryOptions q, CancellationToken ct = default); |
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.
We also need overrides for compile-dc
and other parameters (https://developer.hashicorp.com/consul/api-docs/discovery-chain#json-request-body-schema), but that ideally can be implemented in follow-up PR (so we limit the scope of this PR).
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.
Okay got it 👍
marcin-krystianc
left a comment
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.
Nice 👍


#356 - another take