k3s/pkg/cloudprovider/providers/azure
Kubernetes Submit Queue 696430dd51
Merge pull request #64248 from feiskyer/exact-err-msg
Automatic merge from submit-queue (batch tested with PRs 63319, 64248, 64250, 63890, 64233). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add reason message logs for non-exist Azure resources

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

In azure_wrap.go the function checkResourceExistsFromError() looks at a received error and determines it to be a ResourceNotFound if the HTTP status is http.StatusNotFound. However, the HTTP status also equals http.StatusNotFound in case of SubscriptionNotFound.

this PR adds logs to indict the real error messages for such case.

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

**Special notes for your reviewer**:

**Release note**:

```release-note
Add reason message logs for non-exist Azure resources
```
2018-05-24 19:46:12 -07:00
..
auth Fix broken useManagedIdentityExtension for azure cloud provider 2018-03-05 15:37:25 +08:00
BUILD Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
OWNERS
azure.go Add support of Azure standard load balancer and public IP 2018-03-30 16:52:36 +08:00
azure_backoff.go Add verbose logs for azure cloud provider 2018-05-24 13:20:46 +08:00
azure_backoff_test.go Add additional unit tests. 2018-01-23 04:37:31 +00:00
azure_blobDiskController.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_cache.go Add error handling and new tests 2018-02-09 20:38:29 +08:00
azure_cache_test.go Add error handling and new tests 2018-02-09 20:38:29 +08:00
azure_client.go cleanup unnecessary channels in azure clients 2018-05-04 14:09:07 +08:00
azure_controller_common.go Simplify vmset acquirement logic 2018-04-27 11:05:45 +08:00
azure_controller_standard.go Improve Azure disk operations for vmas and vmss 2018-04-26 14:23:09 +08:00
azure_controller_vmss.go Fix panic for attaching AzureDisk to vmss nodes 2018-04-28 15:48:39 +08:00
azure_fakes.go Fix unit tests for new interfaces 2018-05-09 12:47:56 +08:00
azure_file.go fix rebase error 2018-01-31 03:02:15 +00:00
azure_instance_metadata.go Add useInstanceMetadata param back in Azure cloud provider 2018-02-08 12:40:35 +08:00
azure_instances.go Add verbose logs for azure cloud provider 2018-05-24 13:20:46 +08:00
azure_loadbalancer.go Add verbose logs for azure cloud provider 2018-05-24 13:20:46 +08:00
azure_loadbalancer.md Update azure_loadbalancer.md 2018-02-09 12:52:59 +08:00
azure_loadbalancer_test.go Add unit tests for findRule() 2018-05-24 13:20:46 +08:00
azure_managedDiskController.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_metrics.go Fix typo and comments 2018-01-31 10:55:41 +08:00
azure_metrics_test.go
azure_routes.go Add verbose logs for azure cloud provider 2018-05-24 13:20:46 +08:00
azure_routes_test.go Fix unit tests for new interfaces 2018-05-09 12:47:56 +08:00
azure_standard.go Add verbose logs for azure cloud provider 2018-05-24 13:20:46 +08:00
azure_standard_test.go Move vmset checking back to vmsets 2018-04-19 16:35:08 +08:00
azure_storage.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_storage_test.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_storageaccount.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_storageaccount_test.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_test.go fix fake clients and unit tests 2018-05-04 14:09:48 +08:00
azure_vmsets.go Do not check vmSetName when getting node IP 2018-05-09 12:47:52 +08:00
azure_vmss.go Do not check vmSetName when getting node IP 2018-05-09 12:47:52 +08:00
azure_vmss_cache.go Add reason message logs for non-exist resources 2018-05-24 17:08:48 +08:00
azure_vmss_cache_test.go adding support for VM name with extra Separator String 2018-05-08 06:36:04 -04:00
azure_vmss_test.go Use new clients in azure cloud provider 2018-04-26 09:38:48 +08:00
azure_wrap.go Add reason message logs for non-exist resources 2018-05-24 17:08:48 +08:00
azure_wrap_test.go Add reason message logs for non-exist resources 2018-05-24 17:08:48 +08:00
azure_zones.go Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00