Skip to content

Commit

Permalink
Merge pull request #1516 from caarlos0/patch-1
Browse files Browse the repository at this point in the history
docs: example of age print column
  • Loading branch information
k8s-ci-robot authored May 29, 2020
2 parents 5335689 + 0cf5a18 commit e9cab6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/book/src/reference/generating-crd.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ example:
// +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
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
type Toy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down

0 comments on commit e9cab6e

Please sign in to comment.