From 10acd8fb3912ea94527e23d51e8554699c4af678 Mon Sep 17 00:00:00 2001 From: Abhinav Sinha <37282098+zeborg@users.noreply.github.com> Date: Wed, 14 Dec 2022 11:26:14 +0530 Subject: [PATCH] fix: limit output of `kubectl get awsacfg` (#43) Signed-off-by: Abhinav Sinha --- api/v1alpha1/awsadapterconfig_types.go | 6 +----- .../security.nirmata.io_awsadapterconfigs.yaml | 14 +------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/api/v1alpha1/awsadapterconfig_types.go b/api/v1alpha1/awsadapterconfig_types.go index 18b1f08..b2f5e9c 100644 --- a/api/v1alpha1/awsadapterconfig_types.go +++ b/api/v1alpha1/awsadapterconfig_types.go @@ -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 diff --git a/config/crd/bases/security.nirmata.io_awsadapterconfigs.yaml b/config/crd/bases/security.nirmata.io_awsadapterconfigs.yaml index fbe5188..bb4d6cc 100644 --- a/config/crd/bases/security.nirmata.io_awsadapterconfigs.yaml +++ b/config/crd/bases/security.nirmata.io_awsadapterconfigs.yaml @@ -18,9 +18,6 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: - - jsonPath: .status.id - name: Cluster Id - type: string - jsonPath: .spec.name name: Cluster Name type: string @@ -28,20 +25,11 @@ spec: 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