Skip to content

Commit

Permalink
Add warning message when region is unavailable on the controller
Browse files Browse the repository at this point in the history
Signed-off-by: ConnorJC <[email protected]>
  • Loading branch information
ConnorJC3 committed Aug 23, 2022
1 parent ec30592 commit 971c5f7
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 971c5f7

Please sign in to comment.