Skip to content

Commit 557136d

Browse files
committed
Fixed printer column examples in the generating-crd reference doc
1 parent b4ac7b8 commit 557136d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/book/src/reference/generating-crd.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ information about the knights, rank, and alias fields from the validation
7373
example:
7474

7575
```go
76-
// +kubebuilder:printcolumn:name="Alias",type=string,JSONPATH=`.spec.alias`
77-
// +kubebuilder:printcolumn:name="Rank",type=integer,JSONPATH=`.spec.rank`
76+
// +kubebuilder:printcolumn:name="Alias",type=string,JSONPath=`.spec.alias`
77+
// +kubebuilder:printcolumn:name="Rank",type=integer,JSONPath=`.spec.rank`
7878
// +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
7979
type Toy struct {
8080
metav1.TypeMeta `json:",inline"`

0 commit comments

Comments
 (0)