To set custom fields for the kubectl get command when working with the Operator-SDK, you can use the --custom-columns flag. This flag allows you to define custom output columns based on specific fields of the Kubernetes resources.

Here's an example of how you can use --custom-columns:

kubectl get <resource> --custom-columns=<column1>:<field1>,<column2>:<field2>,...

Replace <resource> with the name of the resource you want to retrieve, such as pods, deployments, or any other Kubernetes resource type. <column1>, <column2>, etc., represent the custom column names you want to display in the output, and <field1>, <field2>, etc., are the corresponding fields of the resource you want to include.
For Example:
kubectl get pods --custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName

This command will retrieve the pods and display their names, status, and the node they are running on. You can adjust the column names and fields according to your specific requirements.

Note that custom columns can only be used for display purposes and do not affect the underlying resource data.