apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  labels:
    app.kubernetes.io/name: ibm-monitoring
    app.kubernetes.io/instance: common-monitoring
    app.kubernetes.io/managed-by: ibm-monitoring-grafana-operator
  name: monitoringdashboards.monitoringcontroller.cloud.ibm.com
spec:
  group: monitoringcontroller.cloud.ibm.com
  names:
    kind: MonitoringDashboard
    plural: monitoringdashboards
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: MonitoringDashboard is the Schema for the Grafana dashboard
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: MonitoringDashboardSpec defines the desired state of MonitoringDashboard
            properties:
              data:
                type: string
                description: 'json string of grafana dashboard'
              enabled:
                type: boolean
            type: object
        type: object
    additionalPrinterColumns:
    - name: Enabled
      type: boolean
      jsonPath: .spec.enabled
    - name: Age
      type: date
      jsonPath: .metadata.creationTimestamp
    served: true
    storage: true
