You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ishankhare07 In your, at_types.go file, add // +kubebuilder:subresource:status
above the At struct. For example,
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// At is the Schema for the cnats API
type At struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AtSpec `json:"spec,omitempty"`
Status AtStatus `json:"status,omitempty"`
}
make sure to delete the existing crd, then make manifests to generate crd again and the usual commands after that.
I'm getting the following error
I can find the said cr if i run
kubectl get at example-at
. But controller reports not found .The specific line causing the error in my opinion is
err = r.Status().Update(context.TODO(), instance)
Below is my whole code for
at_controllers.go
The text was updated successfully, but these errors were encountered: