Documentation ¶
Index ¶
- func BuildMysqlAnnotaions(cr *rdsv1alpha1.Mysql) (annotations map[string]string)
- func BuildMysqlLabels(cr *rdsv1alpha1.Mysql) (labels map[string]string)
- func BuildPodMonitor(cr *rdsv1alpha1.Mysql) (mon *monitorv1.PodMonitor)
- func BuildSecret(cr *rdsv1alpha1.Mysql) (secret *corev1.Secret)
- type MysqlBuilder
- func (t *MysqlBuilder) BuildContainerServices(cr *rdsv1alpha1.Mysql) (services []*corev1.Service)
- func (t *MysqlBuilder) BuildMyCnfCM(cr *rdsv1alpha1.Mysql) (cm *corev1.ConfigMap)
- func (t *MysqlBuilder) BuildService(cr *rdsv1alpha1.Mysql) (svc *corev1.Service)
- func (t *MysqlBuilder) BuildSts() (sts *appsv1.StatefulSet, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMysqlAnnotaions ¶ added in v0.0.2
func BuildMysqlAnnotaions(cr *rdsv1alpha1.Mysql) (annotations map[string]string)
BuildMysqlAnnotaions generate annoations from cr resource, used for pod list filter
func BuildMysqlLabels ¶
func BuildMysqlLabels(cr *rdsv1alpha1.Mysql) (labels map[string]string)
BuildMysqlLabels generate labels from cr resource, used for pod list filter
func BuildPodMonitor ¶ added in v0.0.2
func BuildPodMonitor(cr *rdsv1alpha1.Mysql) (mon *monitorv1.PodMonitor)
func BuildSecret ¶
func BuildSecret(cr *rdsv1alpha1.Mysql) (secret *corev1.Secret)
BuildSecret generate secret environment variables for mysql pods
Types ¶
type MysqlBuilder ¶
type MysqlBuilder struct {
CR *rdsv1alpha1.Mysql
}
func (*MysqlBuilder) BuildContainerServices ¶
func (t *MysqlBuilder) BuildContainerServices(cr *rdsv1alpha1.Mysql) (services []*corev1.Service)
BuildContainerServices generate mysql services for each mysql container
func (*MysqlBuilder) BuildMyCnfCM ¶
func (t *MysqlBuilder) BuildMyCnfCM(cr *rdsv1alpha1.Mysql) (cm *corev1.ConfigMap)
BuildMyCnfCM generate mysql my.cnf configmap
func (*MysqlBuilder) BuildService ¶
func (t *MysqlBuilder) BuildService(cr *rdsv1alpha1.Mysql) (svc *corev1.Service)
BuildService generate mysql services
func (*MysqlBuilder) BuildSts ¶
func (t *MysqlBuilder) BuildSts() (sts *appsv1.StatefulSet, err error)
BuildSts generate mysql statefulset
Click to show internal directories.
Click to hide internal directories.