-
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
Remove deprecated PipelineRun.Spec.ServiceAccountNames
field.
#4988
Remove deprecated PipelineRun.Spec.ServiceAccountNames
field.
#4988
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/retest
/retest |
The following is the coverage report on the affected files.
|
} | ||
} | ||
return serviceAccountName | ||
func (pr *PipelineRun) GetServiceAccountName() string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function can probably just be removed
@@ -645,7 +643,7 @@ Consult the documentation of the custom task that you are using to determine whe | |||
|
|||
### Mapping `ServiceAccount` credentials to `Tasks` | |||
|
|||
If you require more granularity in specifying execution credentials, use the `serviceAccountNames` field to | |||
If you require more granularity in specifying execution credentials, use the `taskRunSpecs[].taskServiceAccountName` field to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not relevant to this PR but maybe in v1 we can change this to taskRunSpecs[].serviceAccountName
} | ||
} | ||
return serviceAccountName | ||
func (pr *PipelineRun) GetServiceAccountName() string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above, this can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my old "don't change anything you don't have to" instinct going overboard... =) On it.
Finishing up tektoncd#2614 We had multiple ways to specify the `serviceAccountName` for `PipelineTask`s - the original `PipelineRun.Spec.ServiceAccountNames`, and the more general `PipelineRun.Spec.TaskRunSpecs`, which also allows specifying a pod template, metadata, and container overrides for individual steps and sidecars. Therefore, we deprecated `ServiceAccountNames`, and are now removing it. This has been scheduled for removal since May 2021. Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
2a0ce9a
to
ce74709
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar to the other removal of deprecated fields, this may also need an email to users and contributors - thank you @abayer!
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerop, lbernick The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
The following is the coverage report on the affected files.
|
/retest |
/test pull-tekton-pipeline-integration-tests |
Changes
Finishing up #2614
We had multiple ways to specify the
serviceAccountName
forPipelineTask
s - the originalPipelineRun.Spec.ServiceAccountNames
, and the more generalPipelineRun.Spec.TaskRunSpecs
, which also allows specifying a pod template, metadata, and container overrides for individual steps and sidecars. Therefore, we deprecatedServiceAccountNames
, and are now removing it.This has been scheduled for removal since May 2021.
/kind cleanup
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes