apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: imagemanifestvulns.secscan.quay.redhat.com
spec:
  group: secscan.quay.redhat.com
  versions:
    - name: v1alpha1
      served: true
      storage: true
      subresources:
        status: {}
      schema:
        openAPIV3Schema:
          type: object
          required: ["spec"]
          properties:
            spec:
              type: object
              properties:
                image:
                  type: string
                  minLength: 1
                manifest:
                  type: string
                  minLength: 1
                namespaceName:
                  type: string
                  minLength: 1
                features:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                      versionformat:
                        type: string
                        minLength: 1
                      namespaceName:
                        type: string
                        minLength: 1
                      version:
                        type: string
                        minLength: 1
                      vulnerabilities:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                            namespaceName:
                              type: string
                              minLength: 1
                            description:
                              type: string
                              minLength: 1
                            link:
                              type: string
                              minLength: 1
                            fixedby:
                              type: string
                              minLength: 1
                            severity:
                              type: string
                              minLength: 1
                            metadata:
                              type: string
                              minLength: 1
            status:
              type: object
              properties:
                lastUpdate:
                  type: string
                  minLength: 1
                highestSeverity:
                  type: string
                  minLength: 1
                unknownCount:
                  type: integer
                  minimum: 0
                negligibleCount:
                  type: integer
                  minimum: 0
                lowCount:
                  type: integer
                  minimum: 0
                mediumCount:
                  type: integer
                  minimum: 0
                highCount:
                  type: integer
                  minimum: 0
                criticalCount:
                  type: integer
                  minimum: 0
                defcon1Count:
                  type: integer
                  minimum: 0
                fixableCount:
                  type: integer
                  minimum: 0
                affectedPods:
                  type: object
                  additionalProperties:
                    type: array
                    items:
                      type: string
  scope: Namespaced
  names:
    kind: ImageManifestVuln
    listKind: ImageManifestVulnList
    plural: imagemanifestvulns
    singular: imagemanifestvuln

