-
Notifications
You must be signed in to change notification settings - Fork 60
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
Monitor task with 0.8 openshift-pipelines operator picks up wrong service account name #139
Comments
From the report it appears to me that the |
@a-roberts, @dibbles in a PipelineRun or TaskRun if a seviceAccount (serviceAccountName) is not specified, pipline-controller use the one specified in https://github.com/tektoncd/pipeline/blob/v0.8.0/config/config-defaults.yaml In upstream releases the
|
So, I think it's upstream code that only populate the defaultSA := cfg.Defaults.DefaultServiceAccount
if trs.ServiceAccountName == "" && defaultSA != "" {
trs.ServiceAccountName = defaultSA
} This will be, most likely, a wontfix, as 0.9.0 is now released with |
I reckon this is still a won't fix and we're good using serviceAccountName so let's close this one? No problems now, all good! |
Yes, this will be fixed with the bump to 0.10.1 👼 |
With the operator (canary channel):
I created my webhook with the SA as tekton-webhooks-extension, pipeline is a built-in SA which doesn't have the permissions I need so my monitor task gets an RBAC error
Without
@dibbles spotted https://github.com/openshift/tektoncd-pipeline-operator/blob/master/pkg/flag/flag.go which is potentially a clue (notice the SA name defaulting to pipeline)
Copy of: tektoncd/experimental#388
The text was updated successfully, but these errors were encountered: