Skip to content

Commit

Permalink
fix: limit output of kubectl get awsacfg (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Sinha <[email protected]>
  • Loading branch information
zeborg authored Dec 14, 2022
1 parent a15bdfc commit 10acd8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
6 changes: 1 addition & 5 deletions api/v1alpha1/awsadapterconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,10 @@ type AWSAdapterConfigStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:resource:shortName="awsacfg"
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Cluster Id",type=string,JSONPath=`.status.id`
//+kubebuilder:printcolumn:name="Cluster Name",type=string,JSONPath=`.spec.name`
//+kubebuilder:printcolumn:name="Region",type=string,JSONPath=`.spec.region`
//+kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.eksCluster.status`
//+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="Platform Version",type=string,JSONPath=`.status.eksCluster.platformVersion`
//+kubebuilder:printcolumn:name="Last Updated",type=date,JSONPath=`.status.lastUpdatedTimestamp`
//+kubebuilder:printcolumn:name="Last Polled",type=date,JSONPath=`.status.lastPollInfo.timestamp`
//+kubebuilder:printcolumn:name="Last Polled Status",type=string,JSONPath=`.status.lastPollInfo.status`

// AWSAdapterConfig is the Schema for the awsadapterconfigs API
Expand Down
14 changes: 1 addition & 13 deletions config/crd/bases/security.nirmata.io_awsadapterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,18 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.id
name: Cluster Id
type: string
- jsonPath: .spec.name
name: Cluster Name
type: string
- jsonPath: .spec.region
name: Region
type: string
- jsonPath: .status.eksCluster.status
name: Status
name: Cluster Status
type: string
- jsonPath: .status.eksCluster.kubernetesVersion
name: Kubernetes Version
type: string
- jsonPath: .status.eksCluster.platformVersion
name: Platform Version
type: string
- jsonPath: .status.lastUpdatedTimestamp
name: Last Updated
type: date
- jsonPath: .status.lastPollInfo.timestamp
name: Last Polled
type: date
- jsonPath: .status.lastPollInfo.status
name: Last Polled Status
type: string
Expand Down

0 comments on commit 10acd8f

Please sign in to comment.