Skip to content

Access token/Security Docs do not provide working example for API access #13257

Closed Locked Answered by agilgur5
jamiro24 asked this question in Q&A
Discussion options

You must be logged in to vote
kubectl create rolebinding argo --serviceaccount dev:tb --role dev:argo
  name: dev:argo

I still do not understand why I had to prepend my role's name with dev: for it to work as I cannot find any mention of this in the docs.

Your shell command and the created RoleBinding, as quoted above, has --role dev:argo.

That's not an Argo error, and these aren't really Argo specific, it's mainly plain k8s. The Argo API is largely just an intermediary to k8s and uses the same permissions your existing k8s SAs have.

See also the --help message for the kubectl command:

❯ kubectl create rolebinding --help
# [...]

    --role='':
        Role this RoleBinding should reference

# [...]

    --servi…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jamiro24
Comment options

@agilgur5
Comment options

@jamiro24
Comment options

@agilgur5
Comment options

@agilgur5
Comment options

Answer selected by agilgur5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/api Argo Server API area/docs Incorrect, missing, or mistakes in docs type/support User support issue - likely not a bug solution/invalid This is incorrect. Also can be used for spam
2 participants