package premium

import (
	pb "github.com/tidbcloud/config-center/proto/config_center"
	"github.com/tidbcloud/config-center/templategen"
)

// specDumpling is created under the SHARED_POOL "dumpling" config type but bound
// only for LOGICAL_CLUSTER, mirroring the original migration.
var specDumpling = templategen.Spec{
	ConfigType: pb.LOGICAL_CLUSTER_COMPONENT_DUMPLING,
	Name:       "system template of premium dumpling",
	Bindings: []templategen.Binding{
		{ClusterType: pb.ClusterType_LOGICAL_CLUSTER, ConfigType: pb.LOGICAL_CLUSTER_CONFIG_DUMPLING},
	},
	Base: templategen.MustTOML(`
node = "4c8g"
cpuRequest = "2"
cpuLimit = "4"
memoryRequest = "4Gi"
memoryLimit = "7Gi"
`),
}
