package common

import cloudv1 "github.com/tidbcloud/infra-api/api/v1"

const (
	MigrateNodeGroupAnnotation  = "tidbcloud.com/migrate-managed-nodegroup-when-upgrading"
	ScaleOutExtraTiDBAnnotation = "tidbcloud.com/scale-out-extra-tidb"

	RestartTiDBAnnotation = "tidb.pingcap.com/restartedAt"

	PendingReason = "Wait for the scheduled time"

	NormalEvent  = "Normal"
	WarningEvent = "Warning"

	ControlPlaneNotUpgraded = "The k8s control plane is not upgraded yet"
)

var (
	ComponentSet = map[string]struct{}{
		string(cloudv1.ComponentPD):      {},
		string(cloudv1.ComponentTiKV):    {},
		string(cloudv1.ComponentTiProxy): {},
		string(cloudv1.ComponentTiFlash): {},
		string(cloudv1.ComponentTiDB):    {},
	}
)
