mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
Disable kubeapi port check if wrap transport is used
This commit is contained in:
committed by
Darren Shepherd
parent
27428ed005
commit
f76f954b42
@@ -230,9 +230,12 @@ func (c *Cluster) CheckClusterPorts(ctx context.Context, currentCluster *Cluster
|
|||||||
if err := c.runServicePortChecks(ctx); err != nil {
|
if err := c.runServicePortChecks(ctx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := c.checkKubeAPIPort(ctx); err != nil {
|
if c.K8sWrapTransport == nil {
|
||||||
return err
|
if err := c.checkKubeAPIPort(ctx); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.removeTCPPortListeners(ctx)
|
return c.removeTCPPortListeners(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user