with configs

This commit is contained in:
Ryan McKinley
2025-06-19 17:33:38 +03:00
parent 0bff610506
commit 1bedd399d6
+2 -4
View File
@@ -22,8 +22,7 @@ var GenericDataSourceResourceInfo = utils.NewResourceInfo(GROUP, VERSION,
utils.TableColumns{
Definition: []metav1.TableColumnDefinition{
{Name: "Name", Type: "string", Format: "name"},
{Name: "Title", Type: "string", Format: "string", Description: "The datasource title"},
{Name: "APIVersion", Type: "string", Format: "string", Description: "API Version"},
{Name: "Title", Type: "string", Format: "string", Description: "Title"},
{Name: "Created At", Type: "date"},
},
Reader: func(obj any) ([]interface{}, error) {
@@ -33,8 +32,7 @@ var GenericDataSourceResourceInfo = utils.NewResourceInfo(GROUP, VERSION,
}
return []interface{}{
m.Name,
"???",
m.APIVersion,
m.Spec.Title,
m.CreationTimestamp.UTC().Format(time.RFC3339),
}, nil
},