From e3544edeeadf2a096e1c68d39d5e989cca67e5e3 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Wed, 4 Mar 2015 15:12:37 -0800 Subject: [PATCH] add section on constants being camel case --- docs/api-conventions.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api-conventions.md b/docs/api-conventions.md index 501fd74ccae..5194814c091 100644 --- a/docs/api-conventions.md +++ b/docs/api-conventions.md @@ -111,6 +111,9 @@ ports: This rule maintains the invariant that all JSON/YAML keys are fields in API objects. The only exceptions are pure maps in the API (currently, labels, selectors, and annotations), as opposed to sets of subobjects. +#### Constants + +Some fields will have a list of allowed values (enumerations). These values will be strings, and they will be in CamelCase, with an initial uppercase letter. Examples: "ClusterFirst", "Pending", "ClientIP". ### Lists and Simple kinds