Skip to content

Commit

Permalink
add default printer columns (#174)
Browse files Browse the repository at this point in the history
Add default printer columns

Signed-off-by: kevinrizza <[email protected]>
  • Loading branch information
kevinrizza authored Sep 22, 2023
1 parent 51e5807 commit 7f903c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/core/v1alpha1/catalog_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const (
//+kubebuilder:object:root=true
//+kubebuilder:resource:scope=Cluster
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
//+kubebuilder:printcolumn:name=Age,type=date,JSONPath=`.metadata.creationTimestamp`

// Catalog is the Schema for the Catalogs API
type Catalog struct {
Expand Down
9 changes: 8 additions & 1 deletion config/crd/bases/catalogd.operatorframework.io_catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ spec:
singular: catalog
scope: Cluster
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: Catalog is the Schema for the Catalogs API
Expand Down

0 comments on commit 7f903c6

Please sign in to comment.