mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-07 18:00:29 +00:00
Automatic merge from submit-queue (batch tested with PRs 49642, 50335, 50390, 49283, 46582) fix bug when azure cloud provider configuration file is not specified **What this PR does / why we need it**: Current [Azure cloud provider](https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/azure/azure.go#L203) failed to [parse empty config file](https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/plugins.go#L110-L124) when `--cloud-config` is not specified. [GetServicePrincipalToken](https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/azure/azure.go#L157-L199) will raise an error if no valid secrets/tokens are found. So we just need to return empty config obj if `--cloud-config` is not set. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49228 **Special notes for your reviewer**: @githubvick **Release note**: ```release-note fix bug when azure cloud provider configuration file is not specified ```