perconaservermongodb

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 62 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 MajorMinor added in v1.8.0

func MajorMinor(ver *v.Version) string

func OwnerRef

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

OwnerRef returns OwnerReference to object

Types

type BackupScheduleJob added in v1.13.0

type BackupScheduleJob struct {
	api.BackupTaskSpec
	JobID cron.EntryID
}

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 UpgradeRequest added in v1.8.0

type UpgradeRequest struct {
	Ok         bool
	Apply      string
	NewVersion 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
	ClusterWideEnabled    bool
	HashicorpVaultEnabled bool
	ShardingEnabled       bool
}

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(cr *api.PerconaServerMongoDB, 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(cr *api.PerconaServerMongoDB, endpoint string, vm VersionMeta) (DepVersion, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳