// Package v1alpha1 add by blacknc <blacknc@163.com> at 2024/10/28 21:08:51
package v1alpha1

import "fmt"

const (
	ProviderTypeLabel = "cloud.pingcap.com/provider-type"
	// RegionLabel is the region where the object is located
	// eks-provider will deploy to multiple-region, the controller will only reconcile objects in the same region
	RegionLabel = "cloud.pingcap.com/region"
)

func (d *DMJob) GetProviderType() string {
	return d.Labels[ProviderTypeLabel]
}

func (d *DMJob) ClusterScopeName() string {
	return fmt.Sprintf("%s-%s", d.Spec.ClusterName, d.ObjectMeta.Name)
}
