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

Fix SDK to support older versions of Consul. #15423

Merged
merged 1 commit into from Nov 18, 2022
Merged

Conversation

hashi-derek
Copy link
Member

@hashi-derek hashi-derek commented Nov 17, 2022

This change was necessary, because the configuration was always generated with a gRPC TLS port, which did not exist in Consul 1.13, and would result in the server failing to launch with an error.

This code checks the version of Consul and conditionally adds the gRPC TLS port, only if the version number is greater than or equal to 1.14.

@github-actions github-actions bot added the theme/api Relating to the HTTP API interface label Nov 17, 2022
This change was necessary, because the configuration was always
generated with a gRPC TLS port, which did not exist in Consul 1.13,
and would result in the server failing to launch with an error.

This code checks the version of Consul and conditionally adds the
gRPC TLS port, only if the version number is greater than 1.14.
@hashi-derek hashi-derek added the backport-inactive/1.14 This release series is longer active label Nov 18, 2022
@hashi-derek hashi-derek marked this pull request as ready for review November 18, 2022 14:22
@hashi-derek hashi-derek requested a review from a team November 18, 2022 14:23
Copy link
Member

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

LGTM 🙇

@hashi-derek hashi-derek merged commit f52f3c5 into main Nov 18, 2022
@hashi-derek hashi-derek deleted the derekm/fix-sdk-grpc-tls branch November 18, 2022 16:32
hashi-derek added a commit that referenced this pull request Nov 18, 2022
This change was necessary, because the configuration was always
generated with a gRPC TLS port, which did not exist in Consul 1.13,
and would result in the server failing to launch with an error.

This code checks the version of Consul and conditionally adds the
gRPC TLS port, only if the version number is greater than 1.14.
hashi-derek added a commit that referenced this pull request Nov 18, 2022
This change was necessary, because the configuration was always
generated with a gRPC TLS port, which did not exist in Consul 1.13,
and would result in the server failing to launch with an error.

This code checks the version of Consul and conditionally adds the
gRPC TLS port, only if the version number is greater than 1.14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-inactive/1.14 This release series is longer active theme/api Relating to the HTTP API interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants