-
Notifications
You must be signed in to change notification settings - Fork 4
POC: Filter namespace data #77
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
base: main
Are you sure you want to change the base?
Conversation
@@ -39,10 +45,27 @@ func NewAdminServiceProxyServer( | |||
) adminservice.AdminServiceServer { | |||
logger = log.With(logger, common.ServiceTag(serviceName)) | |||
clientProvider := client.NewClientProvider(clientConfig, clientFactory, logger) | |||
|
|||
var remoteClientProvider client.ClientProvider |
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.
I think this is actually a "local" client provider (not remote)
} else { | ||
// HACK: This doesn't work for mux transport. | ||
mgr := &transport.TransportManager{} | ||
tp, err := mgr.OpenClient(opts.Config.Inbound.Client) |
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.
For an outbound server, we need the client for the inbound direction. Need to pass the transport manager in here (or maybe pass in just the client itself).
@@ -110,6 +110,7 @@ type ( | |||
HealthCheck *HealthCheckConfig `yaml:"healthCheck"` | |||
NamespaceNameTranslation NamespaceNameTranslationConfig `yaml:"namespaceNameTranslation"` | |||
Metrics *MetricsConfig `yaml:"metrics"` | |||
FilterNsData bool `yaml:"filterNsData"` |
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.
EnableUnsafeNsData
-- My thought here is to flip the boolean around so that the default (if not configured) is that we do the filtering.
This looks good to me, but I'll allow @hehaifengcn to be the final approver as you guys are jamming together. |
What was changed
For GetNamespaceReplicationTasks,
Data
in the responseData
in the response. Do GetNamespace on the destination cluster to find current value of the fieldsWhy?
Checklist
Closes
How was this tested: