---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.17.3
  labels:
    app.kubernetes.io/component: crds
    app.kubernetes.io/instance: kyverno
    app.kubernetes.io/part-of: kyverno-crds
    app.kubernetes.io/version: 3.4.1
  name: clusterephemeralreports.reports.kyverno.io
spec:
  group: reports.kyverno.io
  names:
    categories:
      - kyverno
    kind: ClusterEphemeralReport
    listKind: ClusterEphemeralReportList
    plural: clusterephemeralreports
    shortNames:
      - cephr
    singular: clusterephemeralreport
  scope: Cluster
  versions:
    - additionalPrinterColumns:
        - jsonPath: .metadata.labels['audit\.kyverno\.io/source']
          name: Source
          type: string
        - jsonPath: .metadata.labels['audit\.kyverno\.io/resource\.group']
          name: Group
          type: string
        - jsonPath: .metadata.labels['audit\.kyverno\.io/resource\.kind']
          name: Kind
          type: string
        - jsonPath: .metadata.annotations['audit\.kyverno\.io/resource\.name']
          name: Owner
          type: string
        - jsonPath: .spec.summary.pass
          name: Pass
          type: integer
        - jsonPath: .spec.summary.fail
          name: Fail
          type: integer
        - jsonPath: .spec.summary.warn
          name: Warn
          type: integer
        - jsonPath: .spec.summary.error
          name: Error
          type: integer
        - jsonPath: .spec.summary.skip
          name: Skip
          type: integer
        - jsonPath: .metadata.creationTimestamp
          name: Age
          type: date
        - jsonPath: .metadata.labels['audit\.kyverno\.io/resource\.uid']
          name: Uid
          type: string
        - jsonPath: .metadata.labels['audit\.kyverno\.io/resource\.hash']
          name: Hash
          priority: 1
          type: string
      name: v1
      schema:
        openAPIV3Schema:
          properties:
            apiVersion:
              type: string
            kind:
              type: string
            metadata:
              type: object
            spec:
              properties:
                owner:
                  properties:
                    apiVersion:
                      type: string
                    blockOwnerDeletion:
                      type: boolean
                    controller:
                      type: boolean
                    kind:
                      type: string
                    name:
                      type: string
                    uid:
                      type: string
                  required:
                    - apiVersion
                    - kind
                    - name
                    - uid
                  type: object
                  x-kubernetes-map-type: atomic
                results:
                  items:
                    properties:
                      category:
                        type: string
                      message:
                        type: string
                      policy:
                        type: string
                      properties:
                        additionalProperties:
                          type: string
                        type: object
                      resourceSelector:
                        properties:
                          matchExpressions:
                            items:
                              properties:
                                key:
                                  type: string
                                operator:
                                  type: string
                                values:
                                  items:
                                    type: string
                                  type: array
                                  x-kubernetes-list-type: atomic
                              required:
                                - key
                                - operator
                              type: object
                            type: array
                            x-kubernetes-list-type: atomic
                          matchLabels:
                            additionalProperties:
                              type: string
                            type: object
                        type: object
                        x-kubernetes-map-type: atomic
                      resources:
                        items:
                          properties:
                            apiVersion:
                              type: string
                            fieldPath:
                              type: string
                            kind:
                              type: string
                            name:
                              type: string
                            namespace:
                              type: string
                            resourceVersion:
                              type: string
                            uid:
                              type: string
                          type: object
                          x-kubernetes-map-type: atomic
                        type: array
                      result:
                        enum:
                          - pass
                          - fail
                          - warn
                          - error
                          - skip
                        type: string
                      rule:
                        type: string
                      scored:
                        type: boolean
                      severity:
                        enum:
                          - critical
                          - high
                          - low
                          - medium
                          - info
                        type: string
                      source:
                        type: string
                      timestamp:
                        properties:
                          nanos:
                            format: int32
                            type: integer
                          seconds:
                            format: int64
                            type: integer
                        required:
                          - nanos
                          - seconds
                        type: object
                    required:
                      - policy
                    type: object
                  type: array
                summary:
                  properties:
                    error:
                      type: integer
                    fail:
                      type: integer
                    pass:
                      type: integer
                    skip:
                      type: integer
                    warn:
                      type: integer
                  type: object
              required:
                - owner
              type: object
          required:
            - spec
          type: object
      served: true
      storage: true
      subresources: {}
