From c1519a0932bf1e85f3705d5df274e892d61fd726 Mon Sep 17 00:00:00 2001 From: CatherineF-dev Date: Wed, 4 Jan 2023 08:01:48 -0500 Subject: [PATCH] Update staging/src/k8s.io/sample-controller/README.md Co-authored-by: Joel Speed Kubernetes-commit: 2d4eefe9396fc71c9900992371c35a17f3647932 --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index d7e7fe18..3b73b33a 100644 --- a/README.md +++ b/README.md @@ -126,8 +126,7 @@ type User struct { } ``` -Note, json tag `json:` is needed to generate informer externalversions package. -Otherwise, informer internalversion package is generated. +Note, the JSON tag `json:` is required on all user facing fields within your type. Typically API types contain only user facing fields. When the JSON tag is omitted from the field, Kubernetes generators consider the field to be internal and will not expose the field in their generated external output. For example, this means that the field would not be included in a generated CRD schema. ## Validation