Skip to content

Commit

Permalink
Fixed printer column examples in the generating-crd reference doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ephemeral committed Oct 22, 2019
1 parent b4ac7b8 commit 557136d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/src/reference/generating-crd.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 557136d

Please sign in to comment.