Skip to content

Commit

Permalink
Add additional printer columns (#898)
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <[email protected]>
  • Loading branch information
yeya24 authored Feb 10, 2020
1 parent b183608 commit d233b4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/crds/jaegertracing.io_jaegers_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ spec:
description: Jaeger Version
name: Version
type: string
- JSONPath: .spec.strategy
description: Jaeger deployment strategy
name: Strategy
type: string
- JSONPath: .spec.storage.type
description: Jaeger storage type
name: Storage
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: jaegertracing.io
names:
kind: Jaeger
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/jaegertracing/v1/jaeger_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ type JaegerStatus struct {
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="Jaeger instance's status"
// +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".status.version",description="Jaeger Version"
// +kubebuilder:printcolumn:name="Strategy",type="string",JSONPath=".spec.strategy",description="Jaeger deployment strategy"
// +kubebuilder:printcolumn:name="Storage",type="string",JSONPath=".spec.storage.type",description="Jaeger storage type"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
type Jaeger struct {
metav1.TypeMeta `json:",inline"`

Expand Down

0 comments on commit d233b4f

Please sign in to comment.