New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPBUGS-14149: account for single object in status.conditions instead… #12866
Conversation
@rhamilto: This pull request references Jira Issue OCPBUGS-14149, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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 kubernetes/test-infra repository. |
@rhamilto: This pull request references Jira Issue OCPBUGS-14149, which is invalid:
Comment In 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 kubernetes/test-infra repository. |
/jira refresh |
@rhamilto: This pull request references Jira Issue OCPBUGS-14149, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In 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 kubernetes/test-infra repository. |
const trueConditions = conditions?.filter((c: K8sResourceCondition) => c.status === 'True'); | ||
const conditionsIsObject = | ||
typeof conditions === 'object' && !Array.isArray(conditions) && conditions !== null; | ||
const conditionsArray = conditionsIsObject ? [conditions] : conditions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conditionsArray
name can be misleading because it could be null (or even a string if conditions
can be a string or other non-object type).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, @stleerh. How do you feel about formattedConditions
instead? Still not great...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
… of an array of objects
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, stleerh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
2 similar comments
/retest |
/retest |
@rhamilto: all tests passed! Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
@rhamilto: Jira Issue OCPBUGS-14149: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-14149 has been moved to the MODIFIED state. In 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 kubernetes/test-infra repository. |
@rhamilto is there a way to test the merged changes. For e.g. could ask cluster-bot to launch a cluster by sourcing from a branch but I am not sure if there is a way to do it for opeshift/console? |
/cherry-pick release-4.13 |
@rhamilto: new pull request created: #12875 In 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 kubernetes/test-infra repository. |
Since this fix has merged, cluster bot should automatically include it in any default clusters it creates. |
I am guessing the fix is not available in the latest build available to clusterbot. I am not sure on the timing of such. |
You can optionally build and run console locally by following https://github.com/openshift/console#quickstart. |
Thanks I will TAL |
The fix isn't in a nightly yet. You can see the nightly change logs here: https://openshift-release.apps.ci.l2s4.p1.openshiftapps.com/#4.14.0-0.nightly |
… of an array of objects
Kepler operands return a single object for status.conditions [1] instead of an array of objects. This fix accounts for this unexpected behavior from the operand.
[1]