-
Notifications
You must be signed in to change notification settings - Fork 9
field metav1.ObjectMeta is missing godoc comment #88
New issue
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
Comments
When using the Kube swagger generator, if you are missing documentation on any field, it will report the error. I think it's fairly standard to have a comment on the ObjectMeta. It would still be displayed in I normally just recommend:
And if you look at the k8s swagger you can see they have similar on all of their
Conditions should absolutely be documented, the same as any other status field. Typically they'll document the expected types of conditions.
|
Thank you for your answer. I still feel new to controller development. I usually stick to the kubebuilder book, and consider it best practice. This is not a big problem, but in the long run I think it would be good if code based on the kubebuilder book does not generate warnings. But this is not an issue of KAL, it is an issue of kubebuilder. I am unsure if they have the same goal. Closing this. Cleaning up the examples of kubebuilder is a different topic. |
I think there will be interest from the kubebuilder maintainers to make sure that KALs default configuration doesn't report any issues, we should definitely create an issue for them |
Better yet, we should open an issue about integrating kube-api-linter into the makefile that is generated for new operators by Kubebuilder. |
Continuing the discussion in kubernetes-sigs/kubebuilder#4809 now |
Do you really want a godoc for ObjectMeta?
I think a godoc for ObjecMeta would decrease the signal-noise-ratio in the source code.
Same for
Conditions
.The text was updated successfully, but these errors were encountered: