Documentation ¶
Index ¶
- Constants
- func GetConfigVolumes(cvName, cmName string) corev1.Volume
- func GetSecretVolumes(cvName, cmName string, optional bool) corev1.Volume
- func GetTmpVolume(cvName string) corev1.Volume
- func PMMAgentScript(cr *api.PerconaXtraDBCluster, dbType string) []corev1.EnvVar
- func PMMClient(cr *api.PerconaXtraDBCluster, spec *api.PMMSpec, secret *corev1.Secret, ...) corev1.Container
- func PVCs(name string, vspec *api.VolumeSpec) []corev1.PersistentVolumeClaim
- func Probe(pb *corev1.Probe, cmd ...string) *corev1.Probe
- func SecretKeySelector(name, key string) *corev1.SecretKeySelector
- func VolumeSpec(vspec *api.VolumeSpec) corev1.PersistentVolumeClaimSpec
- func Volumes(podSpec *api.PodSpec, dataVolumeName string) *api.Volume
Constants ¶
View Source
const ( DataVolumeName = "datadir" BinVolumeName = "bin" Name = "pxc" )
View Source
const (
BinVolumeMountPath = "/opt/percona"
)
Variables ¶
This section is empty.
Functions ¶
func GetConfigVolumes ¶ added in v0.3.0
func GetSecretVolumes ¶ added in v1.0.0
func GetTmpVolume ¶ added in v1.0.0
func PMMAgentScript ¶ added in v1.7.0
func PMMAgentScript(cr *api.PerconaXtraDBCluster, dbType string) []corev1.EnvVar
func PVCs ¶
func PVCs(name string, vspec *api.VolumeSpec) []corev1.PersistentVolumeClaim
PVCs returns the list of PersistentVolumeClaims for the pod
func SecretKeySelector ¶
func SecretKeySelector(name, key string) *corev1.SecretKeySelector
SecretKeySelector is a k8s helper to create SecretKeySelector object
func VolumeSpec ¶ added in v0.2.0
func VolumeSpec(vspec *api.VolumeSpec) corev1.PersistentVolumeClaimSpec
VolumeSpec returns volume claim based on the given spec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.