resources

package
v0.0.0-...-ab0235b Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConfigMapObject

func GenerateConfigMapObject(ndb *v1alpha1.Ndb) *corev1.ConfigMap

func GetConfigFromConfigMapObject

func GetConfigFromConfigMapObject(cm *corev1.ConfigMap) (string, error)

func GetConfigHashAndGenerationFromConfig

func GetConfigHashAndGenerationFromConfig(configStr string) (string, int64, error)

func GetConfigString

func GetConfigString(ndb *v1alpha1.Ndb) (string, error)

func InjectUpdateToConfigMapObject

func InjectUpdateToConfigMapObject(ndb *v1alpha1.Ndb, dest *corev1.ConfigMap) *corev1.ConfigMap
  injects a newly generated config map into an existing config map object
	returns a pointer to the changed original

func NewMgmdStatefulSet

func NewMgmdStatefulSet(cluster *v1alpha1.Ndb) *baseStatefulSet

func NewNdbdStatefulSet

func NewNdbdStatefulSet(cluster *v1alpha1.Ndb) *baseStatefulSet

func NewPodDisruptionBudget

func NewPodDisruptionBudget(ndb *v1alpha1.Ndb) *policyv1beta1.PodDisruptionBudget

Create a PodDisruptionBudget

func NewService

func NewService(ndb *v1alpha1.Ndb, mgmd bool, externalIP bool, svcName string) *corev1.Service

NewForCluster will return a new headless Kubernetes service for a MySQL cluster

Types

type StatefulSetInterface

type StatefulSetInterface interface {
	NewStatefulSet(cluster *v1alpha1.Ndb) *apps.StatefulSet
	GetName() string
}

Jump to

Keyboard shortcuts

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