---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.16.3
  name: dwworkers.cloud.pingcap.com
spec:
  group: cloud.pingcap.com
  names:
    kind: DWWorker
    listKind: DWWorkerList
    plural: dwworkers
    singular: dwworker
  preserveUnknownFields: false
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: DWWorker is the Schema for the dwworkers 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: DWWorkerSpec defines the desired state of DWWorker
            properties:
              args:
                description: Args specifies the start command of the DWWorker.
                items:
                  type: string
                type: array
              clusterName:
                description: |-
                  ClusterName specifies the name of the cluster where the DWWorker should be running with,
                  the Cluster must exist in the same namespace.
                type: string
            required:
            - args
            - clusterName
            type: object
          status:
            description: |-
              DWWorkerStatus defines the observed state of DWWorker.
              This struct is intentionally aligned with tidb2dw's apiservice.InfoResponse.
            properties:
              error_message:
                type: string
              status:
                type: string
              tables_info:
                additionalProperties:
                  properties:
                    error_message:
                      type: string
                    stage:
                      type: string
                    status:
                      type: string
                  type: object
                type: object
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
