Skip to content

OADP-8484: Add startup probe to CLI download server#2317

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:oadp-1.3from
NicholasYancey:add-startup-probe-1.3
Jul 22, 2026
Merged

OADP-8484: Add startup probe to CLI download server#2317
openshift-merge-bot[bot] merged 1 commit into
openshift:oadp-1.3from
NicholasYancey:add-startup-probe-1.3

Conversation

@NicholasYancey

Copy link
Copy Markdown
Contributor

Why the changes were made

The CLI download server deployment on oadp-1.6/oadp-dev already added Readiness and Liveness probes (#2306), and oadp-1.3 got those plus a dedicated ServiceAccount via #2310. However, none of these included a StartupProbe.

Without one, the Liveness probe (initialDelaySeconds: 15) can start failing and restarting the container before it's actually finished starting up, especially under slow/loaded conditions — causing avoidable restart loops. A StartupProbe defers the Liveness probe until the container reports healthy, giving it more headroom to start.

This PR is part of the lifecycle probe requirement (readiness/liveness/startup) to self-recover from common failures per Kubernetes best practices.

How to test the changes made

go test ./controllers/... -run 'CLIServer' -v
  1. Deploy the operator from this branch.
  2. Check the StartupProbe is set:
    oc get deploy -n openshift-adp openshift-adp-oadp-cli-server \
      -o jsonpath='{.spec.template.spec.containers[0].startupProbe}{"\n"}'
  3. Confirm the pod comes up healthy:
    oc get pods -n openshift-adp -l app=oadp-cli

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 22, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 22, 2026

Copy link
Copy Markdown

@NicholasYancey: This pull request references OADP-8484 which is a valid jira issue.

Details

In response to this:

Why the changes were made

The CLI download server deployment on oadp-1.6/oadp-dev already added Readiness and Liveness probes (#2306), and oadp-1.3 got those plus a dedicated ServiceAccount via #2310. However, none of these included a StartupProbe.

Without one, the Liveness probe (initialDelaySeconds: 15) can start failing and restarting the container before it's actually finished starting up, especially under slow/loaded conditions — causing avoidable restart loops. A StartupProbe defers the Liveness probe until the container reports healthy, giving it more headroom to start.

This PR is part of the lifecycle probe requirement (readiness/liveness/startup) to self-recover from common failures per Kubernetes best practices.

How to test the changes made

go test ./controllers/... -run 'CLIServer' -v
  1. Deploy the operator from this branch.
  2. Check the StartupProbe is set:
oc get deploy -n openshift-adp openshift-adp-oadp-cli-server \
  -o jsonpath='{.spec.template.spec.containers[0].startupProbe}{"\n"}'
  1. Confirm the pod comes up healthy:
oc get pods -n openshift-adp -l app=oadp-cli

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.

@coderabbitai

coderabbitai Bot commented Jul 22, 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: 1f61a521-2372-4dfd-aa3c-24389b91f874

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.

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

Copy link
Copy Markdown
Contributor Author

/retest

@kaovilai kaovilai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2026
@openshift-ci

openshift-ci Bot commented Jul 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Joeavaikath, kaovilai, NicholasYancey, shubham-pampattiwar

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:
  • OWNERS [Joeavaikath,kaovilai,shubham-pampattiwar]

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

@openshift-ci

openshift-ci Bot commented Jul 22, 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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 669f0df into openshift:oadp-1.3 Jul 22, 2026
10 checks passed
@NicholasYancey
NicholasYancey deleted the add-startup-probe-1.3 branch July 22, 2026 20:42
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. 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