Skip to content

[oadp-1.4] OADP 8452: Add readiness probes and service accounts to CLI download server#2312

Merged
weshayutin merged 1 commit into
openshift:oadp-1.4from
NicholasYancey:backport-probes-sa-1.4
Jul 21, 2026
Merged

[oadp-1.4] OADP 8452: Add readiness probes and service accounts to CLI download server#2312
weshayutin merged 1 commit into
openshift:oadp-1.4from
NicholasYancey:backport-probes-sa-1.4

Conversation

@NicholasYancey

Copy link
Copy Markdown
Contributor

Why the changes were made

The Telco certification access-control-pod-service-account and access-control-pod-role-bindings checks fail because the oadp-cli-server container (deployed to serve CLI binary downloads via ConsoleCLIDownload) uses the default service account.

This PR creates a dedicated ServiceAccount (openshift-adp-cli-server), adds ReadinessProbe and LivenessProbe to 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:

make deploy

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:

oc get pods -n openshift-adp -l app=oadp-cli

READY column should show 1/1.

@NicholasYancey NicholasYancey self-assigned this Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 73ab9163-febf-4051-9a07-91bf21b299be

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NicholasYancey NicholasYancey changed the title [oadp-1.4] OADP 8452: Add readiness probes to CLI download server [oadp-1.4] OADP 8452: Add readiness probes and service accounts to CLI download server Jul 17, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 75 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.15%. Comparing base (e334d7d) to head (b4e0b28).

⚠️ Current head b4e0b28 differs from pull request most recent head bff9e1a

Please upload reports for the commit bff9e1a to get more accurate results.

Files with missing lines Patch % Lines
controllers/cli_download_controller.go 0.00% 75 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 17, 2026
@NicholasYancey

Copy link
Copy Markdown
Contributor Author

/retest

@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown

@NicholasYancey: all tests passed!

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@weshayutin weshayutin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@Joeavaikath

Copy link
Copy Markdown
Contributor

/lgtm

@weshayutin
weshayutin merged commit a1eedd6 into openshift:oadp-1.4 Jul 21, 2026
9 of 10 checks passed
@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 21, 2026
@openshift-ci

openshift-ci Bot commented Jul 21, 2026

Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@NicholasYancey
NicholasYancey deleted the backport-probes-sa-1.4 branch July 21, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants