package consts

import "time"

const (
	RestartTiCDCAnnotation           = "ticdc.cloud.pingcap.com/restart"
	RestartTiCDCOperatorV2Annotation = "pingcap.com/restartedAt"

	ProviderTypeAWS  = "aws"  // gardener-aws provider
	ProviderTypeGCP  = "gcp"  // gardener-gcp provider
	ProviderTypeEKS  = "eks"  // cloud-native and 3layer arch provider
	ProviderTypeGKE  = "gke"  // cloud-native and 3layer arch provider
	ProviderTypeAKS  = "aks"  // azure 3layer arch provider
	ProviderTypeKinD = "kind" // KinD (Kubernetes in Docker) provider
	ProviderTypeACK  = "ack"  // aliyun 3layer arch provider

	ClusterPrefix = "db"

	CertificateDuration               = 10 * 365 * 24 * time.Hour // 10 years
	SelfSignedComponentCACertDuration = 15 * 365 * 24 * time.Hour // 15 years
	SelfSignedComponentCertDuration   = 13 * 30 * 24 * time.Hour  // 13 months
	RenewBefore                       = 30 * 24 * time.Hour       // 30 days
	CertOrganization                  = "PingCAP"
)
