kubernetes-sigs / aws-iam-authenticator

A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
Apache License 2.0
2.17k stars 416 forks source link

Setting '--prompt false' has no effect #594

Open svaranasi-corporate opened 1 year ago

svaranasi-corporate commented 1 year ago

I'm trying to use aws-iam-authenticator in a script to add a role (without human intervention). Setting the argument '--prompt false' doesn't appear to be doing anything as I still get a prompt.

Is this a bug or am I missing something?

I tried this on Git Bash on Windows, and also in an Ubuntu environment with the same results:

$ aws-iam-authenticator.exe version
{"Version":"0.6.2","Commit":"d72e1b46444d0efcb995a28c3846223b39bc4964"}
$ aws-iam-authenticator add role --prompt false --rolearn arn:aws:iam::<snip>:role/aws-reserved/sso.amazonaws.com/<snip> --groups system:masters --cluster-id <snip> --username <snip>:{{SessionName}}
Use the arrow keys to navigate: ↓ ↑ → ←
? Ready to add "add rolearn arn:aws:iam::<snip>:role/aws-reserved/sso.amazonaws.com/<snip>, username AW
<snip>:{{SessionName}}, groups [system:masters]", should we continue?:
  > No, cancel it!
    Yes, let's add "add rolearn arn:aws:iam::<snip>:role/aws-reserved/sso.amazonaws.com/<snip>, usernam
e <snip>:{{SessionName}}, groups [system:masters]"!
svaranasi-corporate commented 1 year ago

Anyone?

k8s-triage-robot commented 5 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 4 months ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

svaranasi-corporate commented 4 months ago

/remove-lifecycle rotten

k8s-triage-robot commented 1 month ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 1 week ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten