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: Update file_config to honor GRPCServerParameters.Enabled #771

Merged
merged 7 commits into from
Jul 10, 2023

Conversation

TylerHelmuth
Copy link
Contributor

@TylerHelmuth TylerHelmuth commented Jul 7, 2023

Which problem is this PR solving?

Short description of the changes

  • Add a GetGRPCEnabled function to config interface.
  • Update file_confg and mock to implement GetGRPCEnabled
  • Update grpc server logic to check if enabled.
  • Update tests

@TylerHelmuth TylerHelmuth added the version: bump patch A PR with release-worthy changes and is backwards-compatible. label Jul 7, 2023
@TylerHelmuth TylerHelmuth requested a review from a team as a code owner July 7, 2023 17:25
@TylerHelmuth TylerHelmuth force-pushed the tyler.fix-GRPCServerParameters.Enabled branch from 5d7ce36 to 9a04507 Compare July 7, 2023 17:47
config.md Outdated Show resolved Hide resolved
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

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

This part looks good, but I think this also requires a change to configMeta.yaml and maybe the . Specifically, the Enabled flag needs:

        valuetype: conditional
        extra: "nonempty GRPCListenAddr"

and the "conditional" helper needs to get the "nonempty" case added.

It would be ok to do those as a separate PR, or as part of this one.

@TylerHelmuth
Copy link
Contributor Author

@kentquirk added the case and then tested with the 1.19.1 helm chart values. They were successfully converted when the grpc address was supplied.

@TylerHelmuth TylerHelmuth merged commit 83d1f6e into main Jul 10, 2023
@TylerHelmuth TylerHelmuth deleted the tyler.fix-GRPCServerParameters.Enabled branch July 10, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: bump patch A PR with release-worthy changes and is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GRPCServerParameters.Enabled is unused.
3 participants