[oadp-1.3] OADP-8450: Reconciling the ServiceAccount#2323
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@NicholasYancey: This pull request references OADP-8450 which is a valid jira issue. 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. |
Codecov Report❌ Patch coverage is Please upload reports for the commit b81af64 to get more accurate results.
Additional details and impacted files@@ Coverage Diff @@
## oadp-1.3 #2323 +/- ##
============================================
+ Coverage 31.33% 33.92% +2.58%
============================================
Files 30 30
Lines 4895 4937 +42
============================================
+ Hits 1534 1675 +141
+ Misses 3195 3082 -113
- Partials 166 180 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@NicholasYancey: all tests passed! 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Joeavaikath, NicholasYancey, sseago The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Why the changes were made
The CLI server's dedicated ServiceAccount was only created when missing and if it already existed with token automounting enabled, wrong labels, or no owner reference, the operator never fixed it. This backports the same reconciliation fix already merged to
oadp-dev(#2318), so existing 1.3 clusters get corrected on upgrade instead of staying out of compliance.How to test the changes made
Run the unit test that verifies an existing ServiceAccount gets reconciled to the desired state:
Then confirm on a running cluster that the ServiceAccount has token automounting disabled:
oc get sa -n openshift-adp openshift-adp-cli-server \ -o jsonpath='{.automountServiceAccountToken}{"\n"}'