---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.15.0
  name: codebaseimagestreams.v2.edp.epam.com
spec:
  group: v2.edp.epam.com
  names:
    kind: CodebaseImageStream
    listKind: CodebaseImageStreamList
    plural: codebaseimagestreams
    shortNames:
    - cbis
    singular: codebaseimagestream
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - description: Owner of object
      jsonPath: .spec.codebase
      name: Codebase Name
      type: string
    name: v1
    schema:
      openAPIV3Schema:
        description: CodebaseImageStream is the Schema for the CodebaseImageStreams
          API.
        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: CodebaseImageStreamSpec defines the desired state of CodebaseImageStream.
            properties:
              codebase:
                description: Name of Codebase associated with.
                type: string
              imageName:
                description: Docker container name without tag, e.g. registry-name/path/name.
                type: string
              tags:
                description: A list of docker image tags available for ImageName and
                  their creation date.
                items:
                  properties:
                    created:
                      type: string
                    name:
                      type: string
                  required:
                  - created
                  - name
                  type: object
                nullable: true
                type: array
            required:
            - codebase
            - imageName
            type: object
          status:
            description: CodebaseImageStreamStatus defines the observed state of CodebaseImageStream.
            properties:
              detailed_message:
                description: |-
                  Detailed information regarding action result
                  which were performed
                type: string
              failureCount:
                description: Amount of times, operator fail to serve with existing
                  CR.
                format: int64
                type: integer
            required:
            - failureCount
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
