---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.15.0
  name: jiraissuemetadatas.v2.edp.epam.com
spec:
  group: v2.edp.epam.com
  names:
    kind: JiraIssueMetadata
    listKind: JiraIssueMetadataList
    plural: jiraissuemetadatas
    shortNames:
    - jim
    singular: jiraissuemetadata
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: JiraIssueMetadata is the Schema for the JiraIssueMetadatas 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: JiraIssueMetadataSpec defines the desired state of JiraIssueMetadata.
            properties:
              codebaseName:
                description: Name of Codebase associated with.
                type: string
              commits:
                items:
                  type: string
                nullable: true
                type: array
              payload:
                description: JSON payload
                type: string
              tickets:
                items:
                  type: string
                nullable: true
                type: array
            required:
            - codebaseName
            type: object
          status:
            description: JiraIssueMetadataStatus defines the observed state of JiraIssueMetadata.
            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
              last_time_updated:
                description: Information when the last time the action were performed.
                format: date-time
                type: string
              status:
                description: Specifies a current status of JiraIssueMetadata.
                type: string
            required:
            - failureCount
            - last_time_updated
            - status
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
