[oadp-1.3] OADP-8450: Add readiness probes and service accounts to CLI download server#2310
Conversation
|
@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. |
|
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 0ac8a8f to get more accurate results.
Additional details and impacted files@@ Coverage Diff @@
## oadp-1.3 #2310 +/- ##
============================================
- Coverage 29.46% 29.03% -0.44%
============================================
Files 30 30
Lines 4812 4884 +72
============================================
Hits 1418 1418
- Misses 3228 3300 +72
Partials 166 166 ☔ 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: NicholasYancey, shubham-pampattiwar, 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 Telco certification
lifecycle-readiness-probe,access-control-pod-service-account, andaccess-control-pod-role-bindingschecks fail because theoadp-cli-servercontainer (deployed to serve CLI binary downloads viaConsoleCLIDownload) has noReadinessProbedefined and uses the default service account.This PR adds a
ReadinessProbeandLivenessProbeto the container, creates a dedicatedServiceAccount(openshift-adp-cli-server), and backfills both onto any already-running Deployments on operator upgrade.Backport of #2306 to
oadp-1.3. The VMDP server does not exist in this branch so only CLI changes are included.Jira link: https://redhat.atlassian.net/browse/OADP-8450
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
httpGetprobe 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:
READYcolumn should show1/1.