Skip to content

Commit

Permalink
Fix Repository CRDs print column (#1046)
Browse files Browse the repository at this point in the history
* Fix Repository CRDs printcolum

Signed-off-by: hossainemruz <[email protected]>

* Run make gen fmt

Signed-off-by: hossainemruz <[email protected]>
  • Loading branch information
hossainemruz authored Feb 6, 2020
1 parent feb204b commit 49bf689
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/crds/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/crds/stash.appscode.com_repositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- JSONPath: .status.integrity
name: Integrity
type: boolean
- JSONPath: .status.size
- JSONPath: .status.totalSize
name: Size
type: string
- JSONPath: .status.snapshotCount
Expand Down
2 changes: 1 addition & 1 deletion apis/stash/v1alpha1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/stash/v1alpha1/repository_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (
// +kubebuilder:resource:path=repositories,singular=repository,shortName=repo,categories={stash,appscode}
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Integrity",type="boolean",JSONPath=".status.integrity"
// +kubebuilder:printcolumn:name="Size",type="string",JSONPath=".status.size"
// +kubebuilder:printcolumn:name="Size",type="string",JSONPath=".status.totalSize"
// +kubebuilder:printcolumn:name="Snapshot-Count",type="integer",JSONPath=".status.snapshotCount"
// +kubebuilder:printcolumn:name="Last-Successful-Backup",type="date",format="date-time",JSONPath=".status.lastBackupTime"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
Expand Down

0 comments on commit 49bf689

Please sign in to comment.