-
I'm learning kube.rs and I'm reading the docs for how to make a controller. What I'm getting from it is that the example is creating a Controller for a custom resource named The code for the reconcile function is below. let pod_data = create_owned_pod(&obj);
let serverside = PatchParams::apply("mycontroller");
let pod = pods.patch(pod.name_any(), serverside, Patch::Apply(pod_data)).await?
// update status object with the creation_timestamp of the owned Pod
let status = json!({
"status": PodManagerStatus { pod_created: pod.meta().creation_timestamp }
});
api.patch_status(&obj.name_any(), &PatchParams::default(), &Patch::Merge(&status))
.await?; As you can see, the last step is to update the Am I missing something ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The |
Beta Was this translation helpful? Give feedback.
The
creation_timestamp
won't be updated when modifying aPod
(or other object) that already exists, only when creating a new object.