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

grpcclient.Config: add support for injecting middleware.ClusterUnaryClientInterceptor #657

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

duricanikolic
Copy link
Contributor

What this PR does:
This PR adds an experimental configuration option -cluster-validation-label to grpcclient.Config. The intended usage of this configuration is to set the cluster validation label of gRPC clients.

Which issue(s) this PR fixes:

Fixes #

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@duricanikolic duricanikolic self-assigned this Mar 3, 2025
@duricanikolic duricanikolic force-pushed the yuri/grpc-cluster-interceptor branch from 22fbe37 to 77cb229 Compare March 3, 2025 19:04
@duricanikolic duricanikolic marked this pull request as draft March 3, 2025 21:44
@duricanikolic duricanikolic force-pushed the yuri/grpc-cluster-interceptor branch 2 times, most recently from 28874eb to bd20f7d Compare March 5, 2025 07:54
@duricanikolic duricanikolic force-pushed the yuri/grpc-cluster-interceptor branch from bd20f7d to 01e5b2c Compare March 5, 2025 09:00
@duricanikolic duricanikolic force-pushed the yuri/grpc-cluster-interceptor branch from e7a03e8 to 5e68124 Compare March 6, 2025 15:53
@duricanikolic duricanikolic force-pushed the yuri/grpc-cluster-interceptor branch from 5e68124 to fc58c4c Compare March 6, 2025 15:58

// RegisteredFlagsTracker is an interface that allows to extract RegisteredFlags.
type RegisteredFlagsTracker interface {
GetRegisteredFlags() RegisteredFlags
Copy link
Contributor

Choose a reason for hiding this comment

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

Idiomatic Go is to drop the Get prefix on the getters.

Suggested change
GetRegisteredFlags() RegisteredFlags
RegisteredFlags() RegisteredFlags

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.

2 participants