kubernetes/pkg/credentialprovider
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 Fix ECR provider startup latency 2021-03-19 23:37:11 +00:00
azure Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
gcp Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
plugin hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
secrets Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
config_test.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
config.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
keyring_test.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
keyring.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
OWNERS *: remove mbohlool from reviewers 2021-02-16 10:59:27 +05:30
plugins.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
provider_test.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00
provider.go Add RegistryConfig/RegistryConfigEntry. 2021-03-02 00:08:54 +00:00