From 557136d5d4b524706f18c3b26a2b1a171764e408 Mon Sep 17 00:00:00 2001 From: Pierre Lacerte Date: Tue, 22 Oct 2019 14:38:03 -0400 Subject: [PATCH] Fixed printer column examples in the generating-crd reference doc --- docs/book/src/reference/generating-crd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/src/reference/generating-crd.md b/docs/book/src/reference/generating-crd.md index ab1f36ed39b..419d9ab33bd 100644 --- a/docs/book/src/reference/generating-crd.md +++ b/docs/book/src/reference/generating-crd.md @@ -73,8 +73,8 @@ information about the knights, rank, and alias fields from the validation example: ```go -// +kubebuilder:printcolumn:name="Alias",type=string,JSONPATH=`.spec.alias` -// +kubebuilder:printcolumn:name="Rank",type=integer,JSONPATH=`.spec.rank` +// +kubebuilder:printcolumn:name="Alias",type=string,JSONPath=`.spec.alias` +// +kubebuilder:printcolumn:name="Rank",type=integer,JSONPath=`.spec.rank` // +kubebuilder:printcolumn:name="Bravely Run Away",type=boolean,JSONPath=`.spec.knights[?(@ == "Sir Robin")]`,description="when danger rears its ugly head, he bravely turned his tail and fled",priority=10 type Toy struct { metav1.TypeMeta `json:",inline"`