Add VirtualMachine.Status.PrintableStatus
@@ -195,8 +195,10 @@ func NewVirtualMachineCrd() (*extv1.CustomResourceDefinition, error) {
}
err := addFieldsToAllVersions(crd, []extv1.CustomResourceColumnDefinition{
{Name: "Age", Type: "date", JSONPath: creationTimestampJSONPath},
+ {Name: "Status", Description: "Human Readable Status", Type: "string", JSONPath: ".status.printableStatus"},
{Name: "Volume", Description: "Primary Volume", Type: "string", JSONPath: ".spec.volumes[0].name"},
- {Name: "Created", Type: "boolean", JSONPath: ".status.created", Priority: 1}}, &extv1.CustomResourceSubresources{
+ {Name: "Created", Type: "boolean", JSONPath: ".status.created", Priority: 1},
+ }, &extv1.CustomResourceSubresources{
Status: &extv1.CustomResourceSubresourceStatus{}})
if err != nil {
return nil, err
