statefulset

package
Version: v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DataVolumeName        = "datadir"
	VaultSecretVolumeName = "vault-keyring-secret"
)

Variables

This section is empty.

Functions

func EntrypointInitContainer added in v1.5.0

func EntrypointInitContainer(initImageName string, resources *api.PodResources, securityContext *corev1.SecurityContext, pullPolicy corev1.PullPolicy) (corev1.Container, error)

Types

type HAProxy added in v1.5.0

type HAProxy struct {
	// contains filtered or unexported fields
}

func NewHAProxy added in v1.5.0

func NewHAProxy(cr *api.PerconaXtraDBCluster) *HAProxy

func (*HAProxy) AppContainer added in v1.5.0

func (c *HAProxy) AppContainer(spec *api.PodSpec, secrets string, cr *api.PerconaXtraDBCluster,
	_ []corev1.Volume) (corev1.Container, error)

func (*HAProxy) Labels added in v1.5.0

func (c *HAProxy) Labels() map[string]string

func (*HAProxy) LogCollectorContainer added in v1.7.0

func (c *HAProxy) LogCollectorContainer(spec *api.LogCollectorSpec, logPsecrets string, logRsecrets string, cr *api.PerconaXtraDBCluster) ([]corev1.Container, error)

func (*HAProxy) Name added in v1.9.0

func (c *HAProxy) Name() string

func (*HAProxy) PMMContainer added in v1.5.0

func (c *HAProxy) PMMContainer(spec *api.PMMSpec, secrets string, cr *api.PerconaXtraDBCluster) (*corev1.Container, error)

func (*HAProxy) Service added in v1.5.0

func (c *HAProxy) Service() string

func (*HAProxy) SidecarContainers added in v1.5.0

func (c *HAProxy) SidecarContainers(spec *api.PodSpec, secrets string, cr *api.PerconaXtraDBCluster) ([]corev1.Container, error)

func (*HAProxy) StatefulSet added in v1.5.0

func (c *HAProxy) StatefulSet() *appsv1.StatefulSet

func (*HAProxy) UpdateStrategy added in v1.5.0

func (*HAProxy) Volumes added in v1.5.0

func (c *HAProxy) Volumes(podSpec *api.PodSpec, cr *api.PerconaXtraDBCluster, vg api.CustomVolumeGetter) (*api.Volume, error)

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(cr *api.PerconaXtraDBCluster) *Node

func (*Node) AppContainer

func (c *Node) AppContainer(spec *api.PodSpec, secrets string, cr *api.PerconaXtraDBCluster, _ []corev1.Volume) (corev1.Container, error)

func (*Node) Labels added in v0.3.0

func (c *Node) Labels() map[string]string

func (*Node) LogCollectorContainer added in v1.7.0

func (c *Node) LogCollectorContainer(spec *api.LogCollectorSpec, logPsecrets string, logRsecrets string, cr *api.PerconaXtraDBCluster) ([]corev1.Container, error)

func (*Node) Name added in v1.9.0

func (c *Node) Name() string

func (*Node) PMMContainer

func (c *Node) PMMContainer(spec *api.PMMSpec, secrets string, cr *api.PerconaXtraDBCluster) (*corev1.Container, error)

func (*Node) Service added in v0.3.0

func (c *Node) Service() string

func (*Node) SidecarContainers added in v0.3.0

func (c *Node) SidecarContainers(spec *api.PodSpec, secrets string, cr *api.PerconaXtraDBCluster) ([]corev1.Container, error)

func (*Node) StatefulSet

func (c *Node) StatefulSet() *appsv1.StatefulSet

func (*Node) UpdateStrategy added in v1.5.0

func (*Node) Volumes added in v0.3.0

func (c *Node) Volumes(podSpec *api.PodSpec, cr *api.PerconaXtraDBCluster, vg api.CustomVolumeGetter) (*api.Volume, error)

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(cr *api.PerconaXtraDBCluster) *Proxy

func (*Proxy) AppContainer

func (c *Proxy) AppContainer(spec *api.PodSpec, secrets string, cr *api.PerconaXtraDBCluster,
	availableVolumes []corev1.Volume) (corev1.Container, error)

func (*Proxy) Labels added in v0.3.0

func (c *Proxy) Labels() map[string]string

func (*Proxy) LogCollectorContainer added in v1.7.0

func (c *Proxy) LogCollectorContainer(spec *api.LogCollectorSpec, logPsecrets string, logRsecrets string, cr *api.PerconaXtraDBCluster) ([]corev1.Container, error)

func (*Proxy) Name added in v1.9.0

func (c *Proxy) Name() string

func (*Proxy) PMMContainer

func (c *Proxy) PMMContainer(spec *api.PMMSpec, secrets string, cr *api.PerconaXtraDBCluster) (*corev1.Container, error)

func (*Proxy) Service added in v0.3.0

func (c *Proxy) Service() string

func (*Proxy) SidecarContainers added in v0.3.0

func (c *Proxy) SidecarContainers(spec *api.PodSpec, secrets string, cr *api.PerconaXtraDBCluster) ([]corev1.Container, error)

func (*Proxy) StatefulSet

func (c *Proxy) StatefulSet() *appsv1.StatefulSet

func (*Proxy) UpdateStrategy added in v1.5.0

func (*Proxy) Volumes added in v0.3.0

func (c *Proxy) Volumes(podSpec *api.PodSpec, cr *api.PerconaXtraDBCluster, vg api.CustomVolumeGetter) (*api.Volume, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL