Documentation
¶
Index ¶
- func GetCrdKindFromKindName(kindName string) (v1alpha1.CrdKind, error)
- func GetOrdinalFromPodName(podName string) (int32, error)
- func GetPodName(tc *v1alpha1.TidbCluster, memberType v1alpha1.MemberType, ordinal int32) string
- func GetPodOrdinals(tc *v1alpha1.TidbCluster, memberType v1alpha1.MemberType) (sets.Int32, error)
- func IsPodOrdinalNotExceedReplicas(pod *corev1.Pod, sts *apps.StatefulSet) (bool, error)
- func IsSubMapOf(first map[string]string, second map[string]string) bool
- func NewCustomResourceDefinition(crdKind v1alpha1.CrdKind, group string, labels map[string]string, ...) *extensionsobj.CustomResourceDefinition
- func OrdinalPVCName(memberType v1alpha1.MemberType, setName string, ordinal int32) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrdKindFromKindName ¶ added in v1.1.0
func GetOrdinalFromPodName ¶ added in v0.4.0
func GetPodName ¶ added in v1.1.0
func GetPodName(tc *v1alpha1.TidbCluster, memberType v1alpha1.MemberType, ordinal int32) string
func GetPodOrdinals ¶ added in v1.1.0
func GetPodOrdinals(tc *v1alpha1.TidbCluster, memberType v1alpha1.MemberType) (sets.Int32, error)
GetPodOrdinals gets desired ordials of member in given TidbCluster.
func IsPodOrdinalNotExceedReplicas ¶ added in v1.1.0
func IsSubMapOf ¶ added in v1.1.0
IsSubMapOf returns whether the first map is a sub map of the second map
func NewCustomResourceDefinition ¶ added in v1.1.0
func NewCustomResourceDefinition(crdKind v1alpha1.CrdKind, group string, labels map[string]string, validation bool) *extensionsobj.CustomResourceDefinition
func OrdinalPVCName ¶ added in v1.1.0
func OrdinalPVCName(memberType v1alpha1.MemberType, setName string, ordinal int32) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.