Skip to content

Commit

Permalink
chore: add AGE printer column (#77)
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Beniwal <kushal.beniwal@nirmata.com>
  • Loading branch information
kbeniwal committed May 26, 2023
1 parent c17de47 commit 76fa416
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/awsadapterconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ type AWSAdapterConfigStatus struct {
//+kubebuilder:printcolumn:name="Cluster Status",type=string,JSONPath=`.status.eksCluster.status`
//+kubebuilder:printcolumn:name="Kubernetes Version",type=string,JSONPath=`.status.eksCluster.kubernetesVersion`
//+kubebuilder:printcolumn:name="Last Polled Status",type=string,JSONPath=`.status.lastPollInfo.status`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// AWSAdapterConfig is the Schema for the awsadapterconfigs API
type AWSAdapterConfig struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
- jsonPath: .status.lastPollInfo.status
name: Last Polled Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/security.nirmata.io_awsadapterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
- jsonPath: .status.lastPollInfo.status
name: Last Polled Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down

0 comments on commit 76fa416

Please sign in to comment.