Skip to content

Commit a06ec9a

Browse files
authored
Merge pull request #1115 from ephemeral/fix_json_path_typo
Fixed printer column examples in the generating-crd reference doc
2 parents de2317f + 557136d commit a06ec9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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)