perconaservermongodb

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 53 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new PerconaServerMongoDB Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func OwnerRef

func OwnerRef(ro runtime.Object, scheme *runtime.Scheme) (metav1.OwnerReference, error)

OwnerRef returns OwnerReference to object

Types

type Credentials added in v1.7.0

type Credentials struct {
	Username string
	Password string
}

type CronRegistry added in v1.5.0

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

func NewCronRegistry added in v1.5.0

func NewCronRegistry() CronRegistry

type DepVersion added in v1.5.0

type DepVersion struct {
	MongoImage    string `json:"mongoImage,omitempty"`
	MongoVersion  string `json:"mongoVersion,omitempty"`
	BackupImage   string `json:"backupImage,omitempty"`
	BackupVersion string `json:"backupVersion,omitempty"`
	PMMImage      string `json:"pmmImage,omitempty"`
	PMMVersion    string `json:"pmmVersion,omitempty"`
}

type OperatorVersion added in v1.5.0

type OperatorVersion struct {
	Operator string        `json:"operator"`
	Database string        `json:"database"`
	Matrix   VersionMatrix `json:"matrix"`
}

type ReconcilePerconaServerMongoDB

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

ReconcilePerconaServerMongoDB reconciles a PerconaServerMongoDB object

func (*ReconcilePerconaServerMongoDB) Reconcile

Reconcile reads that state of the cluster for a PerconaServerMongoDB object and makes changes based on the state read and what is in the PerconaServerMongoDB.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

type Shedule added in v1.5.0

type Shedule struct {
	ID          int
	CronShedule string
}

type UserRole added in v1.7.0

type UserRole string

type Version added in v1.5.0

type Version struct {
	Version   string `json:"version"`
	ImagePath string `json:"imagePath"`
	Imagehash string `json:"imageHash"`
	Status    string `json:"status"`
	Critilal  bool   `json:"critilal"`
}

type VersionMatrix added in v1.5.0

type VersionMatrix struct {
	Mongo  map[string]Version `json:"mongod"`
	PMM    map[string]Version `json:"pmm"`
	Backup map[string]Version `json:"backup"`
}

type VersionMeta added in v1.5.0

type VersionMeta struct {
	Apply         string
	MongoVersion  string
	KubeVersion   string
	Platform      string
	PMMVersion    string
	BackupVersion string
	CRUID         string
	Version       string
}

type VersionResponse added in v1.5.0

type VersionResponse struct {
	Versions []OperatorVersion `json:"versions"`
}

type VersionService added in v1.5.0

type VersionService interface {
	GetExactVersion(endpoint string, vm VersionMeta) (DepVersion, error)
}

type VersionServiceClient added in v1.5.0

type VersionServiceClient struct{}

func (VersionServiceClient) GetExactVersion added in v1.5.0

func (vs VersionServiceClient) GetExactVersion(endpoint string, vm VersionMeta) (DepVersion, error)

Jump to

Keyboard shortcuts

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