-
Notifications
You must be signed in to change notification settings - Fork 259
OCPBUGS-65626: add service account to guard pod #2076
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
base: master
Are you sure you want to change the base?
Conversation
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-65626, 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. |
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-65626, which is valid. 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. |
|
@wangke19 @p0lyn0mial this PR is ready to review. Could you please take a look? :) |
|
/assign @ingvagabund @ingvagabund please take a look at this PR. I think you are the best person to take a look since you created the controller. Thanks! |
|
Hey @ingvagabund - thanks so much for your review! I have amended the changes and added unit tests. Tests are passing locally. Please take a look when you have the chance :) |
|
The PR looks good in overall. Thank you. Just few more nits. |
|
Can you also please open evidence PRs for the corresponding operators as wel? KCM-o, KA-o, KS-o. To see the CI goes green to avoid any hidden corners. |
|
@ingvagabund thanks so much for your review - I have completed the evidence PRs. I'll re-ping for review when the tests come back. :) |
|
Hey @ingvagabund the evidence PR's openshift/cluster-kube-controller-manager-operator#905 , openshift/cluster-kube-apiserver-operator#2026 , and openshift/cluster-kube-scheduler-operator#610 are now ready to review for evidence. I have attached proof of guard pods using their own service accounts in each. Please take a look when you have the chance. :) |
|
Brilliant :) Thank you. |
|
@p0lyn0mial for the final approval |
|
/lgtm cancel @ehearne-redhat can you please squash the commits before merging? |
ce096db to
1763302
Compare
1763302 to
2ebfe9b
Compare
This change add a bespoke service account to a guard pod, and introduces checks to remove zombie service accounts in the case of manual guard pod deletion. Tests are included to test behaviour of service account in different scenarios.
2ebfe9b to
9a4deb2
Compare
|
Hi @ingvagabund - I have squashed the commits, and resolved merge conflicts along the way. Let me know if the squash description works for you. :) |
|
@ehearne-redhat: The following test 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. |
|
All good. Thank you. /lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ehearne-redhat, ingvagabund 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 |
This change adds a bespoke service account to the guard pod. It also handles service account cleanup, and includes additional fields in tests and basic service account testing.
The reason for the change is that we should opt to use a bespoke service account rather than default.