We’re evaluating the way that we capitalize and present Kubernetes terms throughout our Red Hat OpenShift documentation. We've currently been trying to follow the Kubernetes style guidance of capitalizing API objects [1]; for example, capitalizing all instances of “Pod” and “Deployment”.
However, we have a few concerns with this:
As a writing team, we tend to believe that general use of these terms should be lowercase. But we would also prefer to follow the Kubernetes style guidelines if possible, which is why we’re reaching out.
We’d like to understand the reasons behind the guidance:
One of the rules we strive to follow is to use camel cases for API objects.
Similarly, we use 'Container' when we refer to the "v1/Container", etc. With this guideline, we hope we can avoid confusing readers when we say 'Role', 'Status', 'Event', 'Node'.
However, when we are discussing the status of an object, we do not always say 'Status', because the context is very clear.
--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-docs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-docs/a93a6d5e-cf05-42e0-846a-ab998f1fd0c4n%40googlegroups.com.
Andrea Hoffer
Technical Writer
Customer CONTENT SERVICES
red hat, inc.
So what we think should be considered is to lowercase terms when you are just discussing them generally. But then you can use PascalCase when you are specifically referring to interacting with the API object. And in these cases, the API object should probably be in monospace to be clearer as to why there is a switch in capitalization. I think that the page on nodes that I linked earlier would probably read more nicely if all instances of "Node" were in monospace like a field or a flag.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-docs/CAAHNXPLfbM55xuMCG0oLzn5AE3Chbm8aLNVL_dZm17C5%3DBO7oA%40mail.gmail.com.
Kubernetes API names are set in PascalCase (see: https://kubernetes.io/docs/contribute/style/style-guide/#use-camel-case-for-api-objects. Yes, it says “camel case” but it shows Pascal case). The Kubernetes style guide explicitly rejects following Pascal-cased words with the resource’s type, such as “object,” “resource,” or “API”. We reject this, because several single-word named APIs use the Pascal case (FooBar) style, making it impossible to discern without context whether the word is capitalized correctly (as a proper name for a Pascal-cased API, object, or resource).
The following words may be correctly set in Pascal case:
Binding
Container
Deployment
Endpoints
Event
Ingress
Job
Lease
Namespace
Node
Pod
Role
Secret
Service
Volume
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-docs/11a546a6-67bc-48cb-b2fb-951dad4203b7n%40googlegroups.com.