Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BestEffort = corev1.ResourceRequirements{} BurstbleSmall = corev1.ResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("200m"), corev1.ResourceMemory: resource.MustParse("200Mi"), }, Limits: corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("1000m"), corev1.ResourceMemory: resource.MustParse("2Gi"), }, } BurstbleMedium = corev1.ResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("200m"), corev1.ResourceMemory: resource.MustParse("200Mi"), }, Limits: corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("2000m"), corev1.ResourceMemory: resource.MustParse("4Gi"), }, } )
Functions ¶
func GetTidbCluster ¶
func GetTidbCluster(ns, name, version string) *v1alpha1.TidbCluster
GetTidbCluster returns a TidbCluster resource configured for testing
func WithStorage ¶
func WithStorage(r corev1.ResourceRequirements, size string) corev1.ResourceRequirements
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.