1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 23:16:22 +00:00

Bastion host

This commit is contained in:
galal-hussein
2018-05-09 00:30:50 +02:00
parent a43d47b240
commit aff01a9267
8 changed files with 112 additions and 18 deletions

View File

@@ -185,6 +185,10 @@ func ParseCluster(
if err != nil {
return nil, fmt.Errorf("Failed to parse cloud config file: %v", err)
}
// Create k8s wrap transport for bastion host
if len(c.BastionHost.Address) > 0 {
c.K8sWrapTransport = hosts.BastionHostWrapTransport(c.BastionHost)
}
return c, nil
}