kubeflow / katib

Automated Machine Learning on Kubernetes

Home Page:https://www.kubeflow.org/docs/components/katib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update the kubernetes object's status with server-side apply

tenzen-y opened this issue · comments

/kind feature

Describe the solution you'd like
[A clear and concise description of what you want to happen.]
I'd like to replace the client-side apply with the server-side apply when the controller updates the any statuses like

func (r *ReconcileExperiment) updateStatus(instance *experimentsv1beta1.Experiment) error {
.

Server-side applies allow us to avoid updating errors due to conflicts, and then it would reduce confusions for users.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]


Love this feature? Give it a 👍 We prioritize the features with the most 👍

@tenzen-y Could you plz explain what is client-side apply and server-side apply in details?

AFAIK, we usually use r.Status.Update() in CRD operators to update the status of custom resources in k8s cluster. Do you mean that this way of updating status is "server-side apply"?

/assign