[oadp-1.4] OADP 8452: Add readiness probes and service accounts to CLI download server#2312
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: Enterprise 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 |
Codecov Report❌ Patch coverage is Please upload reports for the commit bff9e1a to get more accurate results.
Additional details and impacted files@@ Coverage Diff @@
## oadp-1.4 #2312 +/- ##
============================================
- Coverage 32.62% 32.15% -0.48%
============================================
Files 30 30
Lines 4861 4933 +72
============================================
Hits 1586 1586
- Misses 3100 3172 +72
Partials 175 175 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/retest |
|
@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. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: NicholasYancey, sseago, weshayutin 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 Telco certification
access-control-pod-service-accountandaccess-control-pod-role-bindingschecks fail because theoadp-cli-servercontainer (deployed to serve CLI binary downloads viaConsoleCLIDownload) uses the default service account.This PR creates a dedicated
ServiceAccount(openshift-adp-cli-server), addsReadinessProbeandLivenessProbeto the container, and backfills both onto any already-running Deployments on operator upgrade.Backport of #2306 to
oadp-1.4. The VMDP server does not exist in this branch so only CLI changes are included.Jira link: https://redhat.atlassian.net/browse/OADP-8452
How to test the changes made
Deploy the operator from this branch:
Confirm the download-server Deployment now has probes defined:
oc -n openshift-adp get deploy openshift-adp-oadp-cli-server \ -o jsonpath='{.spec.template.spec.containers[0].readinessProbe}{"\n"}'Should return a populated httpGet probe object, not empty.
Confirm the pod uses the dedicated service account:
oc -n openshift-adp get pod -l app=oadp-cli \ -o jsonpath='{.items[0].spec.serviceAccountName}{"\n"}'Should return openshift-adp-cli-server.
Confirm the pod reports Ready:
READY column should show 1/1.