Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running kubectl command whilst using plugins does not work #3

Closed
vjkancherla opened this issue Dec 15, 2023 · 2 comments
Closed

Running kubectl command whilst using plugins does not work #3

vjkancherla opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels

Comments

@vjkancherla
Copy link

Good evening,

I am trying to run the following kubectl command, whilst using the "aws-auth" plugin, and it fails:

kubectl aws-auth upsert --maproles --rolearn arn:aws:iam::xxxxxxx:role/xxx-test-env-iam-role --username '{{SessionName}}' --groups system:masters --append

The error is:

Error running command 'kubectl --kubeconfig <(echo $KUBECONFIG | base64 -d) aws-auth upsert --maproles --rolearn
│ arn:aws:iam::xxxxxx:role/xxx-test-env-iam-role--username '{{SessionName}}' --groups
│ system:masters --append >> cmd-jenkins.log-0': exit status 1. Output: Error: flags cannot be placed before plugin
│ name: --kubeconfig
@dohoangkhiem
Copy link
Contributor

It seems because any options placed before kubectl plugin name would result in error kubernetes/kubectl#884 ... We will provide fix asap

@dohoangkhiem
Copy link
Contributor

The issue is fixed and pushed in 04128bd, thanks a lot for reporting @vjkancherla !

@dohoangkhiem dohoangkhiem self-assigned this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants