Documentation
¶
Index ¶
- Constants
- func NewServiceHAProxy(cr *api.PerconaXtraDBCluster) *corev1.Service
- func NewServiceHAProxyReplicas(cr *api.PerconaXtraDBCluster) *corev1.Service
- func NewServicePXC(cr *api.PerconaXtraDBCluster) *corev1.Service
- func NewServicePXCUnready(cr *api.PerconaXtraDBCluster) *corev1.Service
- func NewServiceProxySQL(cr *api.PerconaXtraDBCluster) *corev1.Service
- func NewServiceProxySQLUnready(cr *api.PerconaXtraDBCluster) *corev1.Service
- func PodAffinity(af *api.PodAffinity, app api.App) *corev1.Affinity
- func PodDisruptionBudget(cr *api.PerconaXtraDBCluster, spec *api.PodDisruptionBudgetSpec, ...) *policyv1.PodDisruptionBudget
- func PodTopologySpreadConstraints(tscs []corev1.TopologySpreadConstraint, ls map[string]string) []corev1.TopologySpreadConstraint
- func StatefulSet(ctx context.Context, cl client.Client, sfs api.StatefulApp, ...) (*appsv1.StatefulSet, error)
Constants ¶
View Source
const (
// HeadlessServiceAnnotation is the annotation key for headless service
HeadlessServiceAnnotation = "percona.com/headless-service"
)
Variables ¶
This section is empty.
Functions ¶
func NewServiceHAProxy ¶ added in v1.5.0
func NewServiceHAProxy(cr *api.PerconaXtraDBCluster) *corev1.Service
func NewServiceHAProxyReplicas ¶ added in v1.5.0
func NewServiceHAProxyReplicas(cr *api.PerconaXtraDBCluster) *corev1.Service
func NewServicePXC ¶ added in v0.3.0
func NewServicePXC(cr *api.PerconaXtraDBCluster) *corev1.Service
func NewServicePXCUnready ¶ added in v0.3.0
func NewServicePXCUnready(cr *api.PerconaXtraDBCluster) *corev1.Service
func NewServiceProxySQL ¶ added in v0.2.0
func NewServiceProxySQL(cr *api.PerconaXtraDBCluster) *corev1.Service
func NewServiceProxySQLUnready ¶ added in v0.3.0
func NewServiceProxySQLUnready(cr *api.PerconaXtraDBCluster) *corev1.Service
func PodAffinity ¶ added in v0.2.0
PodAffinity returns podAffinity options for the pod
func PodDisruptionBudget ¶ added in v0.3.0
func PodDisruptionBudget(cr *api.PerconaXtraDBCluster, spec *api.PodDisruptionBudgetSpec, labels map[string]string) *policyv1.PodDisruptionBudget
func PodTopologySpreadConstraints ¶ added in v1.14.0
func PodTopologySpreadConstraints(tscs []corev1.TopologySpreadConstraint, ls map[string]string) []corev1.TopologySpreadConstraint
func StatefulSet ¶ added in v0.2.0
func StatefulSet(ctx context.Context, cl client.Client, sfs api.StatefulApp, podSpec *api.PodSpec, cr *api.PerconaXtraDBCluster, secret *corev1.Secret, initImageName string, vg api.CustomVolumeGetter, ) (*appsv1.StatefulSet, error)
StatefulSet returns StatefulSet according for app to podSpec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.