[oadp-1.3] OADP-8484: Added backfill to startup probe#2326
Conversation
|
@NicholasYancey: This pull request references OADP-8484 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: 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 |
Codecov Report❌ Patch coverage is Please upload reports for the commit 7694c45 to get more accurate results.
Additional details and impacted files@@ Coverage Diff @@
## oadp-1.3 #2326 +/- ##
============================================
+ Coverage 33.92% 34.35% +0.42%
============================================
Files 30 30
Lines 4937 4949 +12
============================================
+ Hits 1675 1700 +25
+ Misses 3082 3063 -19
- Partials 180 186 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaovilai, 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 |
|
/retest Flake |
|
@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. |
Why the changes were made
StartupProbewas added to the CLI download server in #2317, but the upgrade-backfill logic inreconcileCLIResourceswas never updated to include it as it only checksReadinessProbe == nilbefore patching an existing deployment. SinceReadinessProbewas already set on any deployment from before #2317, that check never fires again, so existing/upgraded clusters never get aStartupProbebackfilled onto their CLI server pod.This PR fixes the backfill to look up the container by name and independently check/patch
StartupProbealongside readiness/liveness.How to test the changes made
Run the unit tests covering the fix, including a regression test that reproduces the stuck state (probes already set,
StartupProbestill missing):On a live cluster, confirm the probe shows up on an existing deployment after upgrading:
oc get deploy -n openshift-adp openshift-adp-oadp-cli-server \ -o jsonpath='{.spec.template.spec.containers[0].startupProbe}{"\n"}'