mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #27525 from wojtek-t/network_unavailable_only_in_gce
Automatic merge from submit-queue Don't set NetworkUnavailable condition in non-GCE/GKE clouds Ref #27347 @davidopp @erictune @justinsb @simonswine
This commit is contained in:
commit
1444cbf594
@ -1125,7 +1125,11 @@ func (kl *Kubelet) initialNodeStatus() (*api.Node, error) {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
_, supported := kl.cloud.Routes()
|
||||
|
Loading…
Reference in New Issue
Block a user