-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨ Update machine with v1beta2 status #11276
✨ Update machine with v1beta2 status #11276
Conversation
a82e73b
to
f3e1d84
Compare
f0ac8d1
to
82ee71d
Compare
@fabriziopandini: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
Thx! Really nice work /lgtm |
LGTM label has been added. Git tree hash: 518c2c7a92f708847f831e4f84fb69629a10382c
|
/test pull-cluster-api-e2e-main |
// Return early if the object or Cluster is paused. | ||
if annotations.IsPaused(cluster, m) { | ||
log.Info("Reconciliation is paused for this object") | ||
return ctrl.Result{}, nil | ||
return ctrl.Result{}, setPausedCondition(ctx, r.Client, s) |
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.
Note: this does not work together with the above predicate because a paused object only eventually enters this code here (e.g. only when paused is set on the cluster object).
Ok to fix in a follow-up though.
/approve /hold For your convenience. We can fix the paused condition in |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
Sounds good! /hold cancel |
What this PR does / why we need it:
This PR adds code for updating machine with v1beta2 status.
In order to do so, reconcile bootstrap config, infrastructure and node will now always run, ensuring info from those resources are always surfaced (before only a small subset of those were run on reconcile delete, and only after drain and wait for volume detatch actually completed).
Notably, v1beta2 conditions will also provide visibility on several issues before visible only by checking logs, e.g.
Note: this PR is not setting the deleting condition (this is deferred to after node drain proposal is going to merge)
Which issue(s) this PR fixes:
Rif #11105
Area example:
/area api