Skip to content

Commit

Permalink
[kube] allow requests with clusters with seperate mode (#48967)
Browse files Browse the repository at this point in the history
Partial backport of #46779

Signed-off-by: Tiago Silva <[email protected]>
  • Loading branch information
tigrato authored Nov 14, 2024
1 parent 8de51c6 commit b6cd1dd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5313,9 +5313,6 @@ func parseMFAMode(in string) (wancli.AuthenticatorAttachment, error) {
// NewKubernetesServiceClient connects to the proxy and returns an authenticated gRPC
// client to the Kubernetes service.
func (tc *TeleportClient) NewKubernetesServiceClient(ctx context.Context, clusterName string) (kubeproto.KubeServiceClient, error) {
if !tc.TLSRoutingEnabled {
return nil, trace.BadParameter("kube service is not supported if TLS routing is not enabled")
}
// get tlsConfig to dial to proxy.
tlsConfig, err := tc.LoadTLSConfig()
if err != nil {
Expand Down

0 comments on commit b6cd1dd

Please sign in to comment.