kubernetes/pkg/credentialprovider/aws
Nick Turner d422a92e66 Fix ECR provider startup latency
* Before this change, even on non-AWS platforms, the Enabled() check attempts
  to make calls to the metadata endpoint when the session and credentials
  are initialized (in order to determine if the provider should be
  initialized at all).
* This can cause latency because the SDK times out and retries -- up to
  20 seconds of latency has been observed on non-AWS platforms when the
  metadata IP was blocked with an iptables rule.
* Instead, check once if we are running on an EC2 platform, first trying
  to find the EC2 UUID in system files, and second attempting to get
  credentials.
* Add a benchmark test that includes intialization and the credential
  check.
2021-03-19 23:37:11 +00:00
..
aws_credentials_test.go Fix ECR provider startup latency 2021-03-19 23:37:11 +00:00
aws_credentials.go Fix ECR provider startup latency 2021-03-19 23:37:11 +00:00
OWNERS remove david-mcmahon from reviewers 2020-06-30 14:06:58 -07:00