Skip to content

Commit

Permalink
Merge pull request #1359 from ConnorJC3/region-warning-message
Browse files Browse the repository at this point in the history
Add warning message when region is unavailable on the controller
  • Loading branch information
k8s-ci-robot authored Aug 25, 2022
2 parents 551d086 + 971c5f7 commit c05f2f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func newControllerService(driverOptions *DriverOptions) controllerService {
klog.V(5).Infof("[Debug] Retrieving region from metadata service")
metadata, err := NewMetadataFunc(cloud.DefaultEC2MetadataClient, cloud.DefaultKubernetesAPIClient, region)
if err != nil {
klog.Errorf("Could not determine region from any metadata service. The region can be manually supplied via the AWS_REGION environment variable.")
panic(err)
}
region = metadata.GetRegion()
Expand Down

0 comments on commit c05f2f8

Please sign in to comment.