-
Notifications
You must be signed in to change notification settings - Fork 1.4k
The description of cluster paused and skipping remediation of MHC should be clearer #9026
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
Comments
/triage accepted You're right that this is confusing - would be a good idea to clean up the documentation around this. /help |
@killianmuldoon: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed 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. |
/assign |
@killianmuldoon the controller spec definition has to be modified or just the documentation needs more clarity? |
For this we just need to clear up the documentation. |
cool, thanks @killianmuldoon |
Should Something like: // util/annotations/helpers.go
// IsPaused returns true if the Cluster or object is paused.
func IsPaused(cluster *clusterv1.Cluster, o metav1.Object) bool {
if cluster.Spec.Paused {
return true
}
// Cluster or object has the `paused` annotation
return HasPaused(cluster) || HasPaused(o)
} |
Not sure if we should introduce a second way to achieve the same thing (i.e. pausing a Cluster). If there is documentation missing we can update the documentation instead of changing the implementation. |
/priority backlog |
@fabriziopandini shall we close this in favour of #10130? |
AFAIK this is not true, or at least it is only partially true.
Given that, I suggest improving the note in https://cluster-api.sigs.k8s.io/tasks/automated-machine-management/healthchecking.html#skipping-remediation to
/good-first-issue
This issue is about improving the description of the MHC behaviuor in the book. |
@fabriziopandini: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed 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-sigs/prow repository. |
/assign |
What steps did you take and what happened?
Original link https://cluster-api.sigs.k8s.io/tasks/automated-machine-management/healthchecking.html#skipping-remediation
What did you expect to happen?
Original description:
`Implicit skipping when the resource is paused (using cluster.x-k8s.io/paused annotation):
When a cluster is paused, none of the machines in that cluster are considered for remediation.
When a machine is paused, only that machine is not considered for remediation.
A cluster or a machine is usually paused automatically by Cluster API when it detects a migration.`
MHC Controller
According to the MHC code, only when cluster.Spec.Paused is true, none of the machines in that cluster are considered for remediation.
Cluster with cluster.x-k8s.io/paused annotation will only pause the reconciliation of the cluster, not the reconciliation of other resources including MHC.
Cluster API version
v1.4.4
Kubernetes version
No response
Anything else you would like to add?
No response
Label(s) to be applied
/kind bug
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: