I am writing the mutate and validate admission webhooks for the CRDs. I am using kubebuilder to setup the CRDs. Spec and status subresources are behaving correctly.
As a part of mutation, I am having a requirement where I need to update the status subresources.
For example, Exam is my CR and status.status is the Exam status. I want to set the status to "NotDone" in mutation.
I tried following approaches
but none of the approach worked for me.
I am wondering if it is even possible to update the status subresources in the admission webhooks?