Skip to content

Conversation

pglass
Copy link
Collaborator

@pglass pglass commented May 7, 2025

What was changed

For GetNamespaceReplicationTasks,

  • Inbound server: Remove fields from namespace Data in the response
  • Outbound server: Add fields to namespace Data in the response. Do GetNamespace on the destination cluster to find current value of the fields

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@@ -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
Copy link
Collaborator Author

@pglass pglass May 7, 2025

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)
Copy link
Collaborator Author

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"`
Copy link

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.

@davewhat
Copy link

davewhat commented May 7, 2025

This looks good to me, but I'll allow @hehaifengcn to be the final approver as you guys are jamming together.

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