k3s/pkg/cloudprovider/providers/azure
Kubernetes Submit Queue 27fbb68f18 Merge pull request #51087 from oracle/for/upstream/master/ccm-instance-exists
Automatic merge from submit-queue (batch tested with PRs 51174, 51363, 51087, 51382, 51388)

Add InstanceExistsByProviderID to cloud provider interface for CCM

**What this PR does / why we need it**:

Currently, [`MonitorNode()`](02b520f0a4/pkg/controller/cloud/nodecontroller.go (L240)) in the node controller checks with the CCM if a node still exists by calling `ExternalID(nodeName)`. `ExternalID` is supposed to return the provider id of a node which is not supported on every cloud. This means that any clouds who cannot infer the provider id by the node name from a remote location will never remove nodes that no longer exist. 


**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50985

**Special notes for your reviewer**:

We'll want to create a subsequent issue to track the implementation of these two new methods in the cloud providers.

**Release note**:

```release-note
Adds `InstanceExists` and `InstanceExistsByProviderID` to cloud provider interface for the cloud controller manager
```

/cc @wlan0 @thockin @andrewsykim @luxas @jhorwit2

/area cloudprovider
/sig cluster-lifecycle
2017-08-26 06:43:30 -07:00
..
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
OWNERS Added jdumars to OWNERS file for Azure cloud provider 2017-08-11 15:47:54 -04:00
azure.go Merge pull request #49725 from sylr/vnet 2017-08-10 01:41:15 -07:00
azure_backoff.go Merge pull request #45540 from edevil/azure_extra_logging 2017-07-19 21:18:25 -07:00
azure_blobDiskController.go Add Azure managed disk support 2017-07-14 14:09:44 +08:00
azure_controllerCommon.go Add Azure managed disk support 2017-07-14 14:09:44 +08:00
azure_file.go Add Azure managed disk support 2017-07-14 14:09:44 +08:00
azure_instance_metadata.go metadata improvements. 2017-07-31 23:54:22 +00:00
azure_instances.go change godoc based on feedback from luxas 2017-08-25 18:04:10 -04:00
azure_loadbalancer.go Merge pull request #45540 from edevil/azure_extra_logging 2017-07-19 21:18:25 -07:00
azure_managedDiskController.go Add Azure managed disk support 2017-07-14 14:09:44 +08:00
azure_routes.go Add extra logging to azure API calls 2017-07-18 14:40:28 +01:00
azure_storage.go Log name if Azure file share cannot be created 2017-08-15 14:01:53 +12:00
azure_storageaccount.go Add extra logging to azure API calls 2017-07-18 14:40:28 +01:00
azure_test.go metadata improvements. 2017-07-31 23:54:22 +00:00
azure_util.go Merge pull request #45540 from edevil/azure_extra_logging 2017-07-19 21:18:25 -07:00
azure_wrap.go Azure: Allow VNet to be in a separate Resource Group 2017-07-27 18:41:09 +02:00
azure_zones.go cloudprovider.Zones should support external cloud providers 2017-08-24 21:05:49 -04:00