K8s - CRD - Remove a column

Viewed 135

I am creating CRD in K8s cluster. I am able to print all the details as shown here.

kubectl get resource-kind

My only issue is - I would like to remove 1 column which gets printed. Is there anyway to remove a column like 'Age' from printing?

Note:

I had explored priority option of additionalPrinterColumns which does not seem to solve the problem.

1 Answers

Try use awk kubectl get resource-kind | awk '{$number of your column=""; print $0}'

Related