mirror of
https://github.com/rancher/norman.git
synced 2025-09-25 14:46:57 +00:00
Fix issue in which two remotedialers are created
This commit is contained in:
2
build.go
2
build.go
@@ -105,7 +105,7 @@ func (c *Config) Build(ctx context.Context, opts *Options) (context.Context, *Se
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Config) apiServer(ctx context.Context, r *Runtime) error {
|
func (c *Config) apiServer(ctx context.Context, r *Runtime) error {
|
||||||
if c.K3s.RemoteDialerAuthorizer != nil {
|
if c.K3s.RemoteDialerAuthorizer != nil && r.K3sTunnelServer == nil {
|
||||||
r.K3sTunnelServer = remotedialer.New(c.K3s.RemoteDialerAuthorizer, remotedialer.DefaultErrorWriter)
|
r.K3sTunnelServer = remotedialer.New(c.K3s.RemoteDialerAuthorizer, remotedialer.DefaultErrorWriter)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user