mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Don't set NetworkUnavailable condition in non-GCE/GKE clouds
This commit is contained in:
parent
23f9d9f4cf
commit
f24f6102a9
@ -1125,7 +1125,11 @@ func (kl *Kubelet) initialNodeStatus() (*api.Node, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (kl *Kubelet) providerRequiresNetworkingConfiguration() bool {
|
func (kl *Kubelet) providerRequiresNetworkingConfiguration() bool {
|
||||||
if kl.cloud == nil || kl.flannelExperimentalOverlay {
|
// TODO: We should have a mechanism to say whether native cloud provider
|
||||||
|
// is used or whether we are using overlay networking. We should return
|
||||||
|
// true for cloud providers if they implement Routes() interface and
|
||||||
|
// we are not using overlay networking.
|
||||||
|
if kl.cloud == nil || kl.cloud.ProviderName() != "gce" || kl.flannelExperimentalOverlay {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
_, supported := kl.cloud.Routes()
|
_, supported := kl.cloud.Routes()
|
||||||
|
Loading…
Reference in New Issue
Block a user