We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wonder to know the reason behind that: not set status as subresource by default. The operator-sdk set it after add new api.
status
operator-sdk
I struggle it for several hours when I try to use client.status().update in reconscile, until I found status 's subresource is not enable, thanks.
reconscile
/triage support
The text was updated successfully, but these errors were encountered:
Hi @vincent-pli , i am facing same issue. How did you enabled status as subresource ?
Sorry, something went wrong.
@sarweshsuman Add comment: // +kubebuilder:subresource:status to your api difinition like this:
// +kubebuilder:subresource:status
// +kubebuilder:object:root=true // +kubebuilder:subresource:status // Foo is the sample API type Foll struct {
Note. that according to its docs:
CRDs can choose to implement the /status and /scale subresources as of Kubernetes 1.13. It’s generally recommended that you make use of the /status subresource on all resources that have a status field. Ref: https://book.kubebuilder.io/reference/generating-crd.html#subresources
CRDs can choose to implement the /status and /scale subresources as of Kubernetes 1.13.
It’s generally recommended that you make use of the /status subresource on all resources that have a status field. Ref: https://book.kubebuilder.io/reference/generating-crd.html#subresources
So, I agree with you that by default we could scaffold the recommendation. Doing PR for it. Let's see what the others think about.
/assign @camilamacedo86
camilamacedo86
Successfully merging a pull request may close this issue.
I wonder to know the reason behind that: not set
status
as subresource by default.The
operator-sdk
set it after add new api.I struggle it for several hours when I try to use client.status().update in
reconscile
, until I foundstatus
's subresource is not enable, thanks./triage support
The text was updated successfully, but these errors were encountered: