OCPBUGS-65622: add controller for downloads service account deletion logic#1111
OCPBUGS-65622: add controller for downloads service account deletion logic#1111ehearne-redhat wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ehearne-redhat The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-65622, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
5c08afe to
7ba9a63
Compare
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-65622, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
7ba9a63 to
0504779
Compare
|
@ehearne-redhat: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
jhadvig
left a comment
There was a problem hiding this comment.
Thanks @ehearne-redhat for the PR. I would suggest to implement the SA logic into the downloadsdeployment controller since the logic is basically similar. Maybe we could rename it just to downloads folder wise.
We might need to be cautions with the DownloadsDeploymentSync condition if renaming, cause since we would need to add it into the StaleConditionsController.
@yapei pointed out correctly that the service account
downloadsis not deleted once the poddownloadscompletes/deletes.This PR addresses this by adding a controller, similar to how downloads deployment has its own controller in
pkg/console/controllers/downloadsdeployment/controller.go.It also moves the service account in
bindata/assets/deployments/downloads-deployment.yamldown tospec.specso it is placed correctly.The service account is now managed dynamically, so static reference to it in
manifests/06-sa.yamlhas been removed. Now, it has its own file inbindata/assets/serviceaccounts/downloads-sa.yaml.Permissions for the controller to perform CRUD on service account objects has been given to
console-operatorClusterRole.