-
Notifications
You must be signed in to change notification settings - Fork 23
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
CNF-14357: Add timeout for Cluster provisioning #218
Conversation
Missxiaoguo
commented
Sep 25, 2024
- Add ClusterProvisionStartedAt to record the start timestamp of cluster provisioning.
- If cluster provisioning takes longer than the time configured in spec.timeout.clusterProvisioning, the ClusterProvisioned condition will be set to false with the reason TimedOut.
- Only check policy configuration when cluster provisioning has started and has neither failed nor timed out.
- Requeue every 5 minutes if cluster provisioning is still in progress or unknown.
- Change the requeue interval to 5 minutes for policy configuration as well.
@Missxiaoguo: This pull request references CNF-14357 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.18.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
// has started, and not failed or timedout (completed, in-progress or unknown) | ||
if utils.IsClusterProvisionStarted(t.object) && | ||
!utils.IsClusterProvisionFailed(t.object) && | ||
!utils.IsClusterProvisionTimedOut(t.object) { |
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.
It might be better to have these checks in their own function, isClusterReadyForConfig
, since they're used exactly the same below. We would avoid issues in case just one place is mistakenly updated.
f019b36
to
4a9e8d5
Compare
63a2f40
to
a8f3903
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irinamihai 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 |
/lgtm |