1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

Disable kubeapi port check if wrap transport is used

This commit is contained in:
galal-hussein
2018-03-04 14:14:22 +02:00
committed by Darren Shepherd
parent 27428ed005
commit f76f954b42

View File

@@ -230,9 +230,12 @@ func (c *Cluster) CheckClusterPorts(ctx context.Context, currentCluster *Cluster
if err := c.runServicePortChecks(ctx); err != nil {
return err
}
if err := c.checkKubeAPIPort(ctx); err != nil {
return err
if c.K8sWrapTransport == nil {
if err := c.checkKubeAPIPort(ctx); err != nil {
return err
}
}
return c.removeTCPPortListeners(ctx)
}