---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: kubevirtmetricsaggregations.ssp.kubevirt.io
spec:
  group: ssp.kubevirt.io
  names:
    kind: KubevirtMetricsAggregation
    listKind: KubevirtMetricsAggregationList
    plural: kubevirtmetricsaggregations
    shortNames:
    - kvma
    singular: kubevirtmetricsaggregation
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: KubevirtMetricsAggregation defines the MetricsAggregation CR
        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/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/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: Spec contains the configuration of MetricsAggregation
            properties:
              version:
                description: Defines the version of the operand
                type: string
            type: object
          status:
            description: Status holds the current status of MetricsAggregation
            properties:
              conditions:
                description: Reported states of the controller
                items:
                  description: Condition represents the state of the operator's reconciliation
                    functionality.
                  properties:
                    lastHeartbeatTime:
                      format: date-time
                      type: string
                    lastTransitionTime:
                      format: date-time
                      type: string
                    message:
                      type: string
                    reason:
                      type: string
                    status:
                      type: string
                    type:
                      description: ConditionType is the state of the operator's reconciliation
                        functionality.
                      type: string
                  required:
                  - status
                  - type
                  type: object
                type: array
              containers:
                description: Containers used in the current deployment
                items:
                  description: Defines a container
                  properties:
                    image:
                      description: Image path
                      type: string
                    name:
                      description: Container name
                      type: string
                    namespace:
                      description: Container namespace
                      type: string
                    parentKind:
                      description: Parent kind
                      type: string
                    parentName:
                      description: Parent image
                      type: string
                  required:
                  - image
                  - name
                  - namespace
                  - parentKind
                  - parentName
                  type: object
                type: array
              observedVersion:
                description: The version of the deployed operands
                type: string
              operatorVersion:
                description: The version of the deployed operator
                type: string
              targetVersion:
                description: The desired version of the deployed operands
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
  preserveUnknownFields: false
