-
Notifications
You must be signed in to change notification settings - Fork 29
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
Change status.conditions
to the Kubernetes format
#552
Comments
OverviewThe current Operator reconciliation workflow is to observe the maintained resource and update its status first, and then determine whether to reconcile the resource based on the status, and update its status after reconciliation. We can see that the ability to effectively and accurately compare the state of resources in the cluster with the desired resource state is key to determining whether we need to make reconciliation or not. This requires us to provide a reasonable set of judgment criteria which should be
On the other hand, we can use Kubernetes' native Condition as the CRD.Status.Conditions format. The benefits are as follows.
ProposalThe proposal is as follows.
CaseThe following assumes that the current CRD maintains one sub-component (StatefulSet) and demonstrates the full Operator process. |
The current
conditions
field looks like the following:If we use Kubernetes-format Conditions, we can carry some textual information through the
message
andreason
fields that can help improve the usability of Function MeshThe text was updated successfully, but these errors were encountered: