This resource is namespace scoped, refer to [Namespace](./namespace.md) for details.

### Custom Resources

* [DWWorker](#dwworker)

### Sub Resources

* [DWWorkerList](#dwworkerlist)
* [DWWorkerSpec](#dwworkerspec)
* [DWWorkerStatus](#dwworkerstatus)
* [DWWorkerTableInfo](#dwworkertableinfo)

#### DWWorker

DWWorker is the Schema for the dwworkers API

| Field | Description | Scheme | Required |
| ----- | ----------- | ------ | -------- |
| metadata |  | metav1.ObjectMeta | false |
| spec |  | [DWWorkerSpec](#dwworkerspec) | false |
| status |  | [DWWorkerStatus](#dwworkerstatus) | false |

[Back to Custom Resources](#custom-resources)

#### DWWorkerList

DWWorkerList contains a list of DWWorker

| Field | Description | Scheme | Required |
| ----- | ----------- | ------ | -------- |
| metadata |  | metav1.ListMeta | false |
| items |  | [][DWWorker](#dwworker) | true |

[Back to Custom Resources](#custom-resources)

#### DWWorkerSpec

DWWorkerSpec defines the desired state of DWWorker

| Field | Description | Scheme | Required |
| ----- | ----------- | ------ | -------- |
| clusterName | ClusterName specifies the name of the cluster where the DWWorker should be running with, the Cluster must exist in the same namespace. | string | true |
| args | Args specifies the start command of the DWWorker. | []string | true |

[Back to Custom Resources](#custom-resources)

#### DWWorkerStatus

DWWorkerStatus defines the observed state of DWWorker. This struct is intentionally aligned with tidb2dw's apiservice.InfoResponse.

| Field | Description | Scheme | Required |
| ----- | ----------- | ------ | -------- |
| status |  | DWWorkerServiceStatus | false |
| error_message |  | string | false |
| tables_info |  | map[string]*[DWWorkerTableInfo](#dwworkertableinfo) | false |

[Back to Custom Resources](#custom-resources)

#### DWWorkerTableInfo



| Field | Description | Scheme | Required |
| ----- | ----------- | ------ | -------- |
| status |  | DWWorkerTableStatus | false |
| stage |  | DWWorkerTableStage | false |
| error_message |  | string | false |

[Back to Custom Resources](#custom-resources)
