CCO-740: Debounce the degraded status for flaky conditions #977
@dlom: This pull request references CCO-740 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.
<details>
In response to this:
>xref: CCO-740
>/assign @jstuever
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.
</details>
Codecov Report
:x: Patch coverage is
41.66667% with 7 lines in your changes missing coverage. Please review.:white_check_mark: Project coverage is 46.20%. Comparing base (
af37b11) to head (a82eb44).:warning: Report is 31 commits behind head on master.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...rator/podidentity/podidentitywebhook\_controller.go | 30.00% | 6 Missing and 1 partial :warning: |
<details><summary>Additional details and impacted files</summary>

@@ Coverage Diff @@
## master #977 +/- ##
==========================================
- Coverage 46.31% 46.20% -0.11%
==========================================
Files 98 98
Lines 12225 12258 +33
==========================================
+ Hits 5662 5664 +2
- Misses 5913 5943 +30
- Partials 650 651 +1
| Files with missing lines | Coverage Δ | |
|---|---|---|
| pkg/operator/credentialsrequest/status.go | 66.98% <100.00%> (+0.31%) | :arrow_up: |
| ...rator/podidentity/podidentitywebhook\_controller.go | 25.00% <30.00%> (-2.23%) | :arrow_down: |
... and 2 files with indirect coverage changes
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
@jianping-shu I think the automated QE test is failing because the behavior has changed. The operator now waits for several minutes before going degraded if there is an issue with the cloud credentials
@jianping-shu any progress here?
@newtonheath @dlom Was fully engaged on HIVE-2391 testing. I start to look at it now.
I think the automated QE test is failing because the behavior has changed.
@dlom You are right. The auto case OCP-45975 shall be reworked for this feature.
There's incident #incident-20260303-app-ci-image-registry so cluster-bot doesn't work. Will test it after incident resolved.
pre-merge-testing in progress
@dlom I tested and updated https://polarion.engineering.redhat.com/polarion/redirect/project/OSE/workitem?id=OCP-45975.
Step 2 - behavior changed
Before: conditions Degraded and Progressing will updated for the failed credentials request sync
Now: Only Progressing will updated for the failed credentials request sync; Degraded condition has 5 mins delay.
Step 5 - The content of Degraded and Progressing condition is having inconsistency due to the change, can it be enhanced?
/retest
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/openshift/cloud-credential-operator/pull/977#" title="Author self-approved">dlom</a>, <a href="https://github.com/openshift/cloud-credential-operator/pull/977#pullrequestreview-3899237757" title="Approved">jstuever</a>
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
</details>
<!-- META={"approvers":[]} -->
@dlom: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
ci/prow/e2e-aws-qe | a82eb44b751bbb1be2866b2b257d9f1d90917d3f | link | false | /test e2e-aws-qe
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.
</details>
<!-- test report -->
@dlom Can it be enhanced like below?
Whenever Degrade condition changed from 'False' to 'True', delay 5 mins as designed.
In the other cases especially Step 5 of the test case, Degrade condition moved from 'True' to 'True' and only content changed, needn't add any delay.
@dlom Could you check the above proposal and comment?
@dlom - can you take look please
@jianping-shu @newtonheath I'm closing this in favor of #1008
jstuever
dlom
xref: CCO-740
/assign @jstuever