---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.17.2
  name: dmjobs.eks.infra.pingcap.com
spec:
  group: eks.infra.pingcap.com
  names:
    kind: DMJob
    listKind: DMJobList
    plural: dmjobs
    singular: dmjob
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: DMJob is the Schema for the dmjobs 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: DMJobSpec defines the desired state of DMJob
            properties:
              clusterName:
                description: ClusterName is the name of the cluster to deploy DMJob.
                type: string
              master:
                properties:
                  baseImage:
                    description: BaseImage is the base image of the dm
                    type: string
                  specCode:
                    description: SpecCode identifies the specifications required for
                      this task.
                    type: string
                type: object
              worker:
                properties:
                  baseImage:
                    description: BaseImage is the base image of the dm
                    type: string
                  specCode:
                    description: SpecCode identifies the specifications required for
                      this task.
                    type: string
                type: object
            required:
            - clusterName
            type: object
          status:
            description: DMJobStatus defines the observed state of DMJob
            properties:
              awsNodeRoleARN:
                description: AWSNodeRoleARN is the arn of the aws node role
                type: string
              blobContainerName:
                description: BlobContainerName is the name of the blob container
                type: string
              dmImageTag:
                description: DMImageTag is the pod image tag of the master and worker
                type: string
              masterServerName:
                description: MasterServerName is the service addr of dm master.
                type: string
              masterSpecCode:
                description: MasterSpecCode is the spec code of the master.
                type: string
              phase:
                description: Phase is lifecycle phase of the dm job
                type: string
              storageAccountKey:
                description: StorageAccountKey is storage account's access key
                type: string
              storageAccountName:
                description: StorageAccountName is the name of the storage account
                type: string
              workerSpecCode:
                description: WorkerSpecCode is the spec code of the worker.
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
