1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-20 02:32:46 +00:00
Files
norman/pkg/kwrapper/k8s/tunnel.go

17 lines
298 B
Go
Raw Normal View History

package k8s
import (
"net/http"
"github.com/rancher/norman/pkg/remotedialer"
)
func newTunnel(authorizer remotedialer.Authorizer) http.Handler {
if authorizer == nil {
return nil
}
server := remotedialer.New(authorizer, remotedialer.DefaultErrorWriter)
setupK3s(server)
return server
}