Skip to content

Commit

Permalink
Adding additional print columns
Browse files Browse the repository at this point in the history
This allows for easier debugging when performing a `kubectl get imagecache`
  • Loading branch information
davidcollom authored Nov 25, 2022
1 parent bd5a8b4 commit 6fcc0fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/kubefledged/v1alpha2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// ImageCache is a specification for a ImageCache resource
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
type ImageCache struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down

0 comments on commit 6fcc0fd

Please sign in to comment.