fix : Add nacos username and password login option (#2170)

This commit is contained in:
EricaLiu
2025-05-06 15:18:45 +08:00
committed by GitHub
parent ec6004dd27
commit c9733d405c
2 changed files with 12 additions and 0 deletions

View File

@@ -203,6 +203,7 @@ func (r *Reconciler) generateWatcherFromRegistryConfig(registry *apiv1.RegistryC
mcpserver.WithEnableMcpServer(registry.EnableMCPServer),
mcpserver.WithClusterId(r.clusterId),
mcpserver.WithNamespace(r.namespace),
mcpserver.WithAuthOption(authOption),
)
} else {
watcher, err = nacosv2.NewWatcher(