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 <ameukam@gmail.com>
This commit is contained in:
Arnaud Meukam 2023-12-07 19:29:48 +01:00
parent e26b0f99b4
commit 5b3fbe7a7b
No known key found for this signature in database
GPG Key ID: E127D6541A5EBDDB
1 changed files with 1 additions and 1 deletions

View File

@ -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)