mirror of https://github.com/kubernetes/kops.git
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:
parent
e26b0f99b4
commit
5b3fbe7a7b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue