---
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: policyreports.wgpolicyk8s.io
spec:
  group: wgpolicyk8s.io
  names:
    kind: PolicyReport
    listKind: PolicyReportList
    plural: policyreports
    shortNames:
      - polr
    singular: policyreport
  scope: Namespaced
  versions:
    - additionalPrinterColumns:
        - jsonPath: .scope.kind
          name: Kind
          type: string
        - jsonPath: .scope.name
          name: Name
          type: string
        - jsonPath: .summary.pass
          name: Pass
          type: integer
        - jsonPath: .summary.fail
          name: Fail
          type: integer
        - jsonPath: .summary.warn
          name: Warn
          type: integer
        - jsonPath: .summary.error
          name: Error
          type: integer
        - jsonPath: .summary.skip
          name: Skip
          type: integer
        - jsonPath: .metadata.creationTimestamp
          name: Age
          type: date
      name: v1alpha2
      schema:
        openAPIV3Schema:
          properties:
            apiVersion:
              type: string
            kind:
              type: string
            metadata:
              type: object
            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
            scope:
              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
            scopeSelector:
              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
            summary:
              properties:
                error:
                  type: integer
                fail:
                  type: integer
                pass:
                  type: integer
                skip:
                  type: integer
                warn:
                  type: integer
              type: object
          type: object
      served: true
      storage: true
      subresources: {}
