apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: reportdatasources.metering.openshift.io
spec:
  group: metering.openshift.io
  scope: Namespaced
  names:
    plural: reportdatasources
    singular: reportdatasource
    kind: ReportDataSource
    shortNames:
    - datasource
    - datasources
  versions:
  - name: v1
    served: true
    storage: true
    additionalPrinterColumns:
    - name: Earliest Metric
      type: string
      jsonPath: .status.prometheusMetricsImportStatus.earliestImportedMetricTime
    - name: Newest Metric
      type: string
      jsonPath: .status.prometheusMetricsImportStatus.newestImportedMetricTime
    - name: Import Start
      type: string
      jsonPath: .status.prometheusMetricsImportStatus.importDataStartTime
    - name: Import End
      type: string
      jsonPath: .status.prometheusMetricsImportStatus.importDataEndTime
    - name: Last Import Time
      type: string
      jsonPath: .status.prometheusMetricsImportStatus.lastImportTime
    - name: Age
      type: date
      jsonPath: .metadata.creationTimestamp
