-
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 add serviceAccountName
per task in pipeline
#8209
Comments
Currently, you can set a default pipeline/config/config-defaults.yaml Lines 44 to 46 in 8399613
|
/assign |
Hi @chengjoey, thank you for your quick response. I'd suggest one or all of the following:
|
Hey @ElSamhaa @chengjoey,
So the fact that it is not possible today is by design. Adding How should tekton re-act if the In my opinion, there is a couple ways around this:
This is a "client" limitation and should be reported here (SRVKP) (not that this is a known issue and a long-overdue one 😓 ). |
Thanks @vdemeester for your comment. I understand this is by design as I could follow from former discussions. I hoped to provide some feedback and a different perspective nonetheless.
Thanks again for the active engagement from your side and for the great project 🙂 |
Feature request
Hello, thanks for the great project. First, after searching the issues, I believe many people can relate to this request.
IIUC, the
pipeline
behavior is dictated by the definition of the long-livedpipeline
and the runtimepipelineruns
resources. The dynamic parameters live in thepipelinerun
while the more often usable config lives in thepipeline
. That said, I see some limitations that seem counter-intuitive, to say the least:workspace
bindings in thepipeline
(I understand that this is on the roadmap already)serviceAccounts
in thepipeline
The developers don't want to feed in meaningless strings each time they trigger a build. It's pointless because it's fixed for all
pipelineruns
and they're not relevant to them. Besides, "fixed" means they're not parameters => we should have the option to specify them once and forget about them.Now, adding to the above, the fact that many of the tekton pipeline users are on Openshift, we hit another limitation which is Openshift doesn't prompt for
serviceAccounts
for apipelinerun
on its web GUI (at least until Openshift 4.12).Use case
I want some
tasks
to interact with the Kubernetes API server. For this, I need to configure certain tasks or the wholepipeline
to use a certain fixedserviceaccount
for all its builds. Intuitively, I was expecting aserviceAccountName
under thepipeline
task
(each task in the list resolves to a pod, so the implementation should be simple). IMO, I would even say that adding this capability shouldn't break anything as the omission of theserviceAccountName
can still be treated the same way as it is currently (the same current behavior).The text was updated successfully, but these errors were encountered: