multi-cluster-app-dispatcher icon indicating copy to clipboard operation
multi-cluster-app-dispatcher copied to clipboard

[core] AppWrapper CRD should specify a status printer column

Open starpit opened this issue 3 years ago • 2 comments

It would be nice if kubectl get appwrapper had a status column.

starpit avatar Aug 18 '22 14:08 starpit

@astefanutti @dimakis can you please share thoughts on what would be needed to enable status column for AW

asm582 avatar Aug 24 '23 19:08 asm582

@asm582 an additional printer column can be added to the AppWrapper CRD additionalPrinterColumns field, that points to the AppWrapper state field.

Now that the CRDs are generated from the APIs, this can be achieved by adding the +kubebuilder:printcolumn marker to the AppWrapper struct, e.g.:

// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`

And regenerating the CRD.

astefanutti avatar Aug 25 '23 07:08 astefanutti