From 5b3fbe7a7b891ecdf8b0c8b7950421fd6988344c Mon Sep 17 00:00:00 2001 From: Arnaud Meukam Date: Thu, 7 Dec 2023 19:29:48 +0100 Subject: [PATCH] Allow EKS Pod identity env variables Allow env variables required by EKS Pod identity for authentification are passed to the kops binary. See https://docs.aws.amazon.com/eks/latest/userguide/pod-id-how-it-works.html Signed-off-by: Arnaud Meukam --- tests/e2e/kubetest2-kops/deployer/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/kubetest2-kops/deployer/common.go b/tests/e2e/kubetest2-kops/deployer/common.go index e0771db28e..1ee69ab37c 100644 --- a/tests/e2e/kubetest2-kops/deployer/common.go +++ b/tests/e2e/kubetest2-kops/deployer/common.go @@ -187,7 +187,7 @@ func (d *deployer) env() []string { if d.CloudProvider == "aws" { // Pass through some env vars if set - for _, k := range []string{"AWS_PROFILE", "AWS_SHARED_CREDENTIALS_FILE"} { + for _, k := range []string{"AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", "AWS_CONTAINER_CREDENTIALS_FULL_URI", "AWS_PROFILE", "AWS_SHARED_CREDENTIALS_FILE"} { v := os.Getenv(k) if v != "" { vars = append(vars, k+"="+v)