-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Ability to set/parametrize serviceAccountName for single task in pipeline #2140
Comments
One of the design behind this is to separate the runtime options from the definition spec. ServiceAccount are runtime information, and could be changed without the need for the Pipeline definition to change. And on the opposite side, having /kind question /cc @bobcatfish |
I understand and accept this "code"/"runtime" separation, thank you. When i define task body it would be really wrong to define runtime options in it.
|
@vdemeester I was actually looking for something similar, as @dbazhal, but I don't mind if I could define different service accounts per task on the PipelineRun, rather than the Pipeline. How do other people get around the fact that there might be a pipeline step that requires e.g. cluster-admin privileges, while a step further down still needs access to the k8s api, but not at cluster-admin level? It seems like the only solution currently is to use a single |
@vdemeester never mind. I just found out about Mapping Service Accounts to Tasks. Sorry for the noise. Leaving it here in case it helps someone else who stumbles upon this issue first. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Expected Behavior
I'd like to be able to do something like this
So what I want is to:
Actual Behavior
Now i can't define service account in pipelines - only in pipeline runs.
I can't define service account in task spec and i think it is wrong to separate task option from task spec.
I can't parametrize service account for every task.
The text was updated successfully, but these errors were encountered: