Documentation ¶
Index ¶
- Constants
- func CreateResources(r *api.PodResources) (rr corev1.ResourceRequirements, err error)
- func GetConfigVolumes(cvName, cmName string) corev1.Volume
- func GetSecretVolumes(cvName, cmName string, optional bool) corev1.Volume
- func GetTmpVolume(cvName string) corev1.Volume
- func PMMAgentScript(dbType string) []corev1.EnvVar
- func PMMClient(spec *api.PMMSpec, secrets string, v120OrGreater bool, v170OrGreater bool) 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 (
Name = "pxc"
)
Variables ¶
This section is empty.
Functions ¶
func CreateResources ¶
func CreateResources(r *api.PodResources) (rr corev1.ResourceRequirements, err error)
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.1
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.