builder

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProxySQLAnnotations added in v0.0.2

func BuildProxySQLAnnotations(cr *rdsv1alpha1.ProxySQL) (annoations map[string]string)

func BuildProxySQLLabels

func BuildProxySQLLabels(cr *rdsv1alpha1.ProxySQL) (labels map[string]string)

buildProxySQLLabels generate labels from cr resource, used for pod list filter

Types

type ProxySQLBuilder

type ProxySQLBuilder struct {
	CR *rdsv1alpha1.ProxySQL
}

func (*ProxySQLBuilder) BuildService

func (t *ProxySQLBuilder) BuildService() (svc *corev1.Service)

BuildService generate proxysql statefulset service

func (*ProxySQLBuilder) BuildSts

func (t *ProxySQLBuilder) BuildSts() (sts *appsv1.StatefulSet, err error)

BuildSts generate proxysql statefulset spec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL