Documentation ¶
Index ¶
- Constants
- func ConstLabels(xstore *polardbxv1.XStore) map[string]string
- func ConstPodLabels(xstore *polardbxv1.XStore, nodeSet *polardbxv1xstore.NodeSet) map[string]string
- func DefaultRoleOf(nodeRole polardbxv1xstore.NodeRole) string
- func GetGenerationLabelValue(object client.Object) (int64, error)
- func GetXStoreServiceName(xstore *polardbxv1.XStore) string
- func IsGenerationOutdated(xstore *polardbxv1.XStore, object client.Object) (bool, error)
- func LabelGeneration(xstore *polardbxv1.XStore) map[string]string
- func NewConfigMapName(xstore *polardbxv1.XStore, cmType ConfigMapType) string
- func NewHeadlessServiceName(podName string) string
- func NewJobName(xstore *polardbxv1.XStore, name string) string
- func NewPodName(xstore *polardbxv1.XStore, nodeSet *polardbxv1xstore.NodeSet, index int) string
- func NewSecretName(xstore *polardbxv1.XStore) string
- func NewServiceName(xstore *polardbxv1.XStore, serviceType ServiceType) string
- func PodIndexInNodeSet(podName string) (int, error)
- type ConfigMapType
- type ServiceType
Constants ¶
View Source
const ( PortAccess = "mysql" PortMetrics = "metrics" PortProbe = "probe" )
View Source
const ( ConfigMyCnfTemplate = "my.cnf.template" ConfigMyCnfOverride = "my.cnf.override" )
View Source
const ( ContainerEngine = "engine" ContainerExporter = "exporter" ContainerProber = "prober" )
View Source
const SuperAccount = "admin"
Variables ¶
This section is empty.
Functions ¶
func ConstLabels ¶
func ConstLabels(xstore *polardbxv1.XStore) map[string]string
func ConstPodLabels ¶
func ConstPodLabels(xstore *polardbxv1.XStore, nodeSet *polardbxv1xstore.NodeSet) map[string]string
func DefaultRoleOf ¶
func DefaultRoleOf(nodeRole polardbxv1xstore.NodeRole) string
func GetXStoreServiceName ¶
func GetXStoreServiceName(xstore *polardbxv1.XStore) string
func IsGenerationOutdated ¶
func LabelGeneration ¶
func LabelGeneration(xstore *polardbxv1.XStore) map[string]string
func NewConfigMapName ¶
func NewConfigMapName(xstore *polardbxv1.XStore, cmType ConfigMapType) string
func NewHeadlessServiceName ¶
func NewJobName ¶
func NewJobName(xstore *polardbxv1.XStore, name string) string
func NewPodName ¶
func NewPodName(xstore *polardbxv1.XStore, nodeSet *polardbxv1xstore.NodeSet, index int) string
func NewSecretName ¶
func NewSecretName(xstore *polardbxv1.XStore) string
func NewServiceName ¶
func NewServiceName(xstore *polardbxv1.XStore, serviceType ServiceType) string
func PodIndexInNodeSet ¶
Types ¶
type ConfigMapType ¶
type ConfigMapType string
const ( ConfigMapTypeConfig ConfigMapType = "config" ConfigMapTypeTask ConfigMapType = "task" )
type ServiceType ¶
type ServiceType string
const ( ServiceTypeReadWrite ServiceType = "readwrite" ServiceTypeReadOnly ServiceType = "readonly" ServiceTypeMetrics ServiceType = "metrics" ServiceTypeHeadless ServiceType = "headless" )
Click to show internal directories.
Click to hide internal directories.