v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the psmdb v1 API group +k8s:deepcopy-gen=package,register +groupName=psmdb.percona.com

Package v1 contains API Schema definitions for the psmdb v1 API group +k8s:deepcopy-gen=package,register +groupName=psmdb.percona.com

Index

Constants

View Source
const (
	AppStatePending AppState = "pending"
	AppStateInit             = "initializing"
	AppStateReady            = "ready"
	AppStateError            = "error"
)
View Source
const (
	ConditionTrue    ConditionStatus = "True"
	ConditionFalse                   = "False"
	ConditionUnknown                 = "Unknown"
)
View Source
const (
	ClusterReady   ClusterConditionType = "ClusterReady"
	ClusterInit                         = "ClusterInitializing"
	ClusterRSInit                       = "ReplsetInitialized"
	ClusterRSReady                      = "ReplsetReady"
	ClusterError                        = "Error"
)
View Source
const (
	MongodChiperModeUnset MongodChiperMode = ""
	MongodChiperModeCBC                    = "AES256-CBC"
	MongodChiperModeGCM                    = "AES256-GCM"
)
View Source
const (
	PlatformUndef      Platform = ""
	PlatformKubernetes          = "kubernetes"
	PlatformOpenshift           = "openshift"
)
View Source
const AffinityOff = "none"
View Source
const DefaultDNSSuffix = "svc.cluster.local"

DefaultDNSSuffix is a default dns suffix for the cluster service

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "psmdb.percona.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type AppState

type AppState string

type Arbiter

type Arbiter struct {
	Enabled bool  `json:"enabled"`
	Size    int32 `json:"size"`
	MultiAZ
}

func (*Arbiter) DeepCopy

func (in *Arbiter) DeepCopy() *Arbiter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Arbiter.

func (*Arbiter) DeepCopyInto

func (in *Arbiter) DeepCopyInto(out *Arbiter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuditLogDestination

type AuditLogDestination string
var AuditLogDestinationFile AuditLogDestination = "file"

type AuditLogFormat

type AuditLogFormat string
var (
	AuditLogFormatBSON AuditLogFormat = "BSON"
	AuditLogFormatJSON AuditLogFormat = "JSON"
)

type BackupSpec

type BackupSpec struct {
	Enabled                  bool                         `json:"enabled"`
	Storages                 map[string]BackupStorageSpec `json:"storages,omitempty"`
	Image                    string                       `json:"image,omitempty"`
	Tasks                    []BackupTaskSpec             `json:"tasks,omitempty"`
	ServiceAccountName       string                       `json:"serviceAccountName,omitempty"`
	PodSecurityContext       *corev1.PodSecurityContext   `json:"podSecurityContext,omitempty"`
	ContainerSecurityContext *corev1.SecurityContext      `json:"containerSecurityContext,omitempty"`
	Resources                *ResourcesSpec               `json:"resources,omitempty"`
}

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackupState added in v1.4.0

type BackupState string
const (
	BackupStateNew       BackupState = ""
	BackupStateWaiting   BackupState = "waiting"
	BackupStateRequested BackupState = "requested"
	BackupStateRejected  BackupState = "rejected"
	BackupStateRunning   BackupState = "running"
	BackupStateError     BackupState = "error"
	BackupStateReady     BackupState = "ready"
)

type BackupStorageS3Spec

type BackupStorageS3Spec struct {
	Bucket            string `json:"bucket"`
	Prefix            string `json:"prefix,omitempty"`
	Region            string `json:"region,omitempty"`
	EndpointURL       string `json:"endpointUrl,omitempty"`
	CredentialsSecret string `json:"credentialsSecret"`
}

func (*BackupStorageS3Spec) DeepCopy

func (in *BackupStorageS3Spec) DeepCopy() *BackupStorageS3Spec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageS3Spec.

func (*BackupStorageS3Spec) DeepCopyInto

func (in *BackupStorageS3Spec) DeepCopyInto(out *BackupStorageS3Spec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackupStorageSpec

type BackupStorageSpec struct {
	Type BackupStorageType   `json:"type"`
	S3   BackupStorageS3Spec `json:"s3,omitempty"`
}

func (*BackupStorageSpec) DeepCopy

func (in *BackupStorageSpec) DeepCopy() *BackupStorageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageSpec.

func (*BackupStorageSpec) DeepCopyInto

func (in *BackupStorageSpec) DeepCopyInto(out *BackupStorageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackupStorageType

type BackupStorageType string
const (
	BackupStorageFilesystem BackupStorageType = "filesystem"
	BackupStorageS3         BackupStorageType = "s3"
)

type BackupTaskSpec

type BackupTaskSpec struct {
	Name            string              `json:"name"`
	Enabled         bool                `json:"enabled"`
	Schedule        string              `json:"schedule,omitempty"`
	StorageName     string              `json:"storageName,omitempty"`
	CompressionType pbm.CompressionType `json:"compressionType,omitempty"`
}

func (*BackupTaskSpec) DeepCopy

func (in *BackupTaskSpec) DeepCopy() *BackupTaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTaskSpec.

func (*BackupTaskSpec) DeepCopyInto

func (in *BackupTaskSpec) DeepCopyInto(out *BackupTaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterCondition

type ClusterCondition struct {
	Status             ConditionStatus      `json:"status"`
	Type               ClusterConditionType `json:"type"`
	LastTransitionTime metav1.Time          `json:"lastTransitionTime,omitempty"`
	Reason             string               `json:"reason,omitempty"`
	Message            string               `json:"message,omitempty"`
}

func (*ClusterCondition) DeepCopy

func (in *ClusterCondition) DeepCopy() *ClusterCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.

func (*ClusterCondition) DeepCopyInto

func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterConditionType

type ClusterConditionType string

type ClusterRole

type ClusterRole string
const (
	ClusterRoleShardSvr  ClusterRole = "shardsvr"
	ClusterRoleConfigSvr ClusterRole = "configsvr"
)

type ConditionStatus

type ConditionStatus string

type Expose

type Expose struct {
	Enabled    bool               `json:"enabled"`
	ExposeType corev1.ServiceType `json:"exposeType,omitempty"`
}

func (*Expose) DeepCopy

func (in *Expose) DeepCopy() *Expose

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Expose.

func (*Expose) DeepCopyInto

func (in *Expose) DeepCopyInto(out *Expose)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LivenessProbeExtended added in v1.4.0

type LivenessProbeExtended struct {
	corev1.Probe        `json:",inline"`
	StartupDelaySeconds int `json:"startupDelaySeconds,omitempty"`
}

func (LivenessProbeExtended) CommandHas added in v1.4.0

func (l LivenessProbeExtended) CommandHas(flag string) bool

func (*LivenessProbeExtended) DeepCopy added in v1.4.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LivenessProbeExtended.

func (*LivenessProbeExtended) DeepCopyInto added in v1.4.0

func (in *LivenessProbeExtended) DeepCopyInto(out *LivenessProbeExtended)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodChiperMode added in v1.1.0

type MongodChiperMode string

MongodChiperMode is a cipher mode used by Data-at-Rest Encryption

type MongodSpec

type MongodSpec struct {
	Net                *MongodSpecNet                `json:"net,omitempty"`
	AuditLog           *MongodSpecAuditLog           `json:"auditLog,omitempty"`
	OperationProfiling *MongodSpecOperationProfiling `json:"operationProfiling,omitempty"`
	Replication        *MongodSpecReplication        `json:"replication,omitempty"`
	Security           *MongodSpecSecurity           `json:"security,omitempty"`
	SetParameter       *MongodSpecSetParameter       `json:"setParameter,omitempty"`
	Storage            *MongodSpecStorage            `json:"storage,omitempty"`
}

func (*MongodSpec) DeepCopy

func (in *MongodSpec) DeepCopy() *MongodSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpec.

func (*MongodSpec) DeepCopyInto

func (in *MongodSpec) DeepCopyInto(out *MongodSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecAuditLog

type MongodSpecAuditLog struct {
	Destination AuditLogDestination `json:"destination,omitempty"`
	Format      AuditLogFormat      `json:"format,omitempty"`
	Filter      string              `json:"filter,omitempty"`
}

func (*MongodSpecAuditLog) DeepCopy

func (in *MongodSpecAuditLog) DeepCopy() *MongodSpecAuditLog

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecAuditLog.

func (*MongodSpecAuditLog) DeepCopyInto

func (in *MongodSpecAuditLog) DeepCopyInto(out *MongodSpecAuditLog)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecInMemory

type MongodSpecInMemory struct {
	EngineConfig *MongodSpecInMemoryEngineConfig `json:"engineConfig,omitempty"`
}

func (*MongodSpecInMemory) DeepCopy

func (in *MongodSpecInMemory) DeepCopy() *MongodSpecInMemory

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecInMemory.

func (*MongodSpecInMemory) DeepCopyInto

func (in *MongodSpecInMemory) DeepCopyInto(out *MongodSpecInMemory)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecInMemoryEngineConfig

type MongodSpecInMemoryEngineConfig struct {
	InMemorySizeRatio float64 `json:"inMemorySizeRatio,omitempty"`
}

func (*MongodSpecInMemoryEngineConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecInMemoryEngineConfig.

func (*MongodSpecInMemoryEngineConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecMMAPv1

type MongodSpecMMAPv1 struct {
	NsSize     int  `json:"nsSize,omitempty"`
	Smallfiles bool `json:"smallfiles,omitempty"`
}

func (*MongodSpecMMAPv1) DeepCopy

func (in *MongodSpecMMAPv1) DeepCopy() *MongodSpecMMAPv1

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecMMAPv1.

func (*MongodSpecMMAPv1) DeepCopyInto

func (in *MongodSpecMMAPv1) DeepCopyInto(out *MongodSpecMMAPv1)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecNet

type MongodSpecNet struct {
	Port     int32 `json:"port,omitempty"`
	HostPort int32 `json:"hostPort,omitempty"`
}

func (*MongodSpecNet) DeepCopy

func (in *MongodSpecNet) DeepCopy() *MongodSpecNet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecNet.

func (*MongodSpecNet) DeepCopyInto

func (in *MongodSpecNet) DeepCopyInto(out *MongodSpecNet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecOperationProfiling

type MongodSpecOperationProfiling struct {
	Mode              OperationProfilingMode `json:"mode,omitempty"`
	SlowOpThresholdMs int                    `json:"slowOpThresholdMs,omitempty"`
	RateLimit         int                    `json:"rateLimit,omitempty"`
}

func (*MongodSpecOperationProfiling) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecOperationProfiling.

func (*MongodSpecOperationProfiling) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecReplication

type MongodSpecReplication struct {
	OplogSizeMB int `json:"oplogSizeMB,omitempty"`
}

func (*MongodSpecReplication) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecReplication.

func (*MongodSpecReplication) DeepCopyInto

func (in *MongodSpecReplication) DeepCopyInto(out *MongodSpecReplication)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecSecurity

type MongodSpecSecurity struct {
	RedactClientLogData  bool             `json:"redactClientLogData,omitempty"`
	EnableEncryption     *bool            `json:"enableEncryption,omitempty"`
	EncryptionKeySecret  string           `json:"encryptionKeySecret,omitempty"`
	EncryptionCipherMode MongodChiperMode `json:"encryptionCipherMode,omitempty"`
}

func (*MongodSpecSecurity) DeepCopy

func (in *MongodSpecSecurity) DeepCopy() *MongodSpecSecurity

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecSecurity.

func (*MongodSpecSecurity) DeepCopyInto

func (in *MongodSpecSecurity) DeepCopyInto(out *MongodSpecSecurity)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecSetParameter

type MongodSpecSetParameter struct {
	TTLMonitorSleepSecs                   int `json:"ttlMonitorSleepSecs,omitempty"`
	WiredTigerConcurrentReadTransactions  int `json:"wiredTigerConcurrentReadTransactions,omitempty"`
	WiredTigerConcurrentWriteTransactions int `json:"wiredTigerConcurrentWriteTransactions,omitempty"`
}

func (*MongodSpecSetParameter) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecSetParameter.

func (*MongodSpecSetParameter) DeepCopyInto

func (in *MongodSpecSetParameter) DeepCopyInto(out *MongodSpecSetParameter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecStorage

type MongodSpecStorage struct {
	Engine         StorageEngine         `json:"engine,omitempty"`
	DirectoryPerDB bool                  `json:"directoryPerDB,omitempty"`
	SyncPeriodSecs int                   `json:"syncPeriodSecs,omitempty"`
	InMemory       *MongodSpecInMemory   `json:"inMemory,omitempty"`
	MMAPv1         *MongodSpecMMAPv1     `json:"mmapv1,omitempty"`
	WiredTiger     *MongodSpecWiredTiger `json:"wiredTiger,omitempty"`
}

func (*MongodSpecStorage) DeepCopy

func (in *MongodSpecStorage) DeepCopy() *MongodSpecStorage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecStorage.

func (*MongodSpecStorage) DeepCopyInto

func (in *MongodSpecStorage) DeepCopyInto(out *MongodSpecStorage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecWiredTiger

type MongodSpecWiredTiger struct {
	CollectionConfig *MongodSpecWiredTigerCollectionConfig `json:"collectionConfig,omitempty"`
	EngineConfig     *MongodSpecWiredTigerEngineConfig     `json:"engineConfig,omitempty"`
	IndexConfig      *MongodSpecWiredTigerIndexConfig      `json:"indexConfig,omitempty"`
}

func (*MongodSpecWiredTiger) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTiger.

func (*MongodSpecWiredTiger) DeepCopyInto

func (in *MongodSpecWiredTiger) DeepCopyInto(out *MongodSpecWiredTiger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecWiredTigerCollectionConfig

type MongodSpecWiredTigerCollectionConfig struct {
	BlockCompressor *WiredTigerCompressor `json:"blockCompressor,omitempty"`
}

func (*MongodSpecWiredTigerCollectionConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTigerCollectionConfig.

func (*MongodSpecWiredTigerCollectionConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecWiredTigerEngineConfig

type MongodSpecWiredTigerEngineConfig struct {
	CacheSizeRatio      float64               `json:"cacheSizeRatio,omitempty"`
	DirectoryForIndexes bool                  `json:"directoryForIndexes,omitempty"`
	JournalCompressor   *WiredTigerCompressor `json:"journalCompressor,omitempty"`
}

func (*MongodSpecWiredTigerEngineConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTigerEngineConfig.

func (*MongodSpecWiredTigerEngineConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongodSpecWiredTigerIndexConfig

type MongodSpecWiredTigerIndexConfig struct {
	PrefixCompression bool `json:"prefixCompression,omitempty"`
}

func (*MongodSpecWiredTigerIndexConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTigerIndexConfig.

func (*MongodSpecWiredTigerIndexConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MongosSpec

type MongosSpec struct {
	*ResourcesSpec `json:"resources,omitempty"`
	Port           int32 `json:"port,omitempty"`
	HostPort       int32 `json:"hostPort,omitempty"`
}

func (*MongosSpec) DeepCopy

func (in *MongosSpec) DeepCopy() *MongosSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongosSpec.

func (*MongosSpec) DeepCopyInto

func (in *MongosSpec) DeepCopyInto(out *MongosSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiAZ

type MultiAZ struct {
	Affinity            *PodAffinity             `json:"affinity,omitempty"`
	NodeSelector        map[string]string        `json:"nodeSelector,omitempty"`
	Tolerations         []corev1.Toleration      `json:"tolerations,omitempty"`
	PriorityClassName   string                   `json:"priorityClassName,omitempty"`
	Annotations         map[string]string        `json:"annotations,omitempty"`
	Labels              map[string]string        `json:"labels,omitempty"`
	PodDisruptionBudget *PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"`
}

func (*MultiAZ) DeepCopy

func (in *MultiAZ) DeepCopy() *MultiAZ

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiAZ.

func (*MultiAZ) DeepCopyInto

func (in *MultiAZ) DeepCopyInto(out *MultiAZ)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OperationProfilingMode

type OperationProfilingMode string
const (
	OperationProfilingModeAll    OperationProfilingMode = "all"
	OperationProfilingModeSlowOp OperationProfilingMode = "slowOp"
)

type PMMSpec

type PMMSpec struct {
	Enabled    bool           `json:"enabled,omitempty"`
	ServerHost string         `json:"serverHost,omitempty"`
	Image      string         `json:"image,omitempty"`
	Resources  *ResourcesSpec `json:"resources,omitempty"`
}

func (*PMMSpec) DeepCopy

func (in *PMMSpec) DeepCopy() *PMMSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PMMSpec.

func (*PMMSpec) DeepCopyInto

func (in *PMMSpec) DeepCopyInto(out *PMMSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PerconaServerMongoDB

type PerconaServerMongoDB struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PerconaServerMongoDBSpec   `json:"spec,omitempty"`
	Status PerconaServerMongoDBStatus `json:"status,omitempty"`
}

PerconaServerMongoDB is the Schema for the perconaservermongodbs API +k8s:openapi-gen=true

func (*PerconaServerMongoDB) CheckNSetDefaults

func (cr *PerconaServerMongoDB) CheckNSetDefaults(platform version.Platform, log logr.Logger) error

CheckNSetDefaults sets default options, overwrites wrong settings and checks if other options' values valid

func (*PerconaServerMongoDB) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDB.

func (*PerconaServerMongoDB) DeepCopyInto

func (in *PerconaServerMongoDB) DeepCopyInto(out *PerconaServerMongoDB)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PerconaServerMongoDB) DeepCopyObject

func (in *PerconaServerMongoDB) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PerconaServerMongoDB) OwnerRef

func (cr *PerconaServerMongoDB) OwnerRef(scheme *runtime.Scheme) (metav1.OwnerReference, error)

OwnerRef returns OwnerReference to object

func (*PerconaServerMongoDB) VersionGreaterThanOrEqual added in v1.3.0

func (cr *PerconaServerMongoDB) VersionGreaterThanOrEqual(version string) (bool, error)

type PerconaServerMongoDBBackup

type PerconaServerMongoDBBackup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PerconaServerMongoDBBackupSpec   `json:"spec,omitempty"`
	Status PerconaServerMongoDBBackupStatus `json:"status,omitempty"`
}

PerconaServerMongoDBBackup is the Schema for the perconaservermongodbbackups API +k8s:openapi-gen=true

func (*PerconaServerMongoDBBackup) CheckFields

func (p *PerconaServerMongoDBBackup) CheckFields() error

func (*PerconaServerMongoDBBackup) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBBackup.

func (*PerconaServerMongoDBBackup) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PerconaServerMongoDBBackup) DeepCopyObject

func (in *PerconaServerMongoDBBackup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PerconaServerMongoDBBackupList

type PerconaServerMongoDBBackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PerconaServerMongoDBBackup `json:"items"`
}

PerconaServerMongoDBBackupList contains a list of PerconaServerMongoDBBackup

func (*PerconaServerMongoDBBackupList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBBackupList.

func (*PerconaServerMongoDBBackupList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PerconaServerMongoDBBackupList) DeepCopyObject

func (in *PerconaServerMongoDBBackupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PerconaServerMongoDBBackupSpec

type PerconaServerMongoDBBackupSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	PSMDBCluster string              `json:"psmdbCluster,omitempty"`
	StorageName  string              `json:"storageName,omitempty"`
	Comperssion  pbm.CompressionType `json:"compressionType,omitempty"`
}

PerconaServerMongoDBBackupSpec defines the desired state of PerconaServerMongoDBBackup

func (*PerconaServerMongoDBBackupSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBBackupSpec.

func (*PerconaServerMongoDBBackupSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PerconaServerMongoDBBackupStatus

type PerconaServerMongoDBBackupStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	State          BackupState          `json:"state,omitempty"`
	StartAt        *metav1.Time         `json:"start,omitempty"`
	CompletedAt    *metav1.Time         `json:"completed,omitempty"`
	LastTransition *metav1.Time         `json:"lastTransition,omitempty"`
	Destination    string               `json:"destination,omitempty"`
	StorageName    string               `json:"storageName,omitempty"`
	S3             *BackupStorageS3Spec `json:"s3,omitempty"`
	PBMname        string               `json:"pbmName,omitempty"`
	Error          string               `json:"error,omitempty"`
}

PerconaServerMongoDBBackupStatus defines the observed state of PerconaServerMongoDBBackup

func (*PerconaServerMongoDBBackupStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBBackupStatus.

func (*PerconaServerMongoDBBackupStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PerconaServerMongoDBList

type PerconaServerMongoDBList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PerconaServerMongoDB `json:"items"`
}

PerconaServerMongoDBList contains a list of PerconaServerMongoDB

func (*PerconaServerMongoDBList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBList.

func (*PerconaServerMongoDBList) DeepCopyInto

func (in *PerconaServerMongoDBList) DeepCopyInto(out *PerconaServerMongoDBList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PerconaServerMongoDBList) DeepCopyObject

func (in *PerconaServerMongoDBList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PerconaServerMongoDBRestore

type PerconaServerMongoDBRestore struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PerconaServerMongoDBRestoreSpec   `json:"spec,omitempty"`
	Status PerconaServerMongoDBRestoreStatus `json:"status,omitempty"`
}

PerconaServerMongoDBRestore is the Schema for the perconaservermongodbrestores API +k8s:openapi-gen=true

func (*PerconaServerMongoDBRestore) CheckFields

func (r *PerconaServerMongoDBRestore) CheckFields() error

func (*PerconaServerMongoDBRestore) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBRestore.

func (*PerconaServerMongoDBRestore) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PerconaServerMongoDBRestore) DeepCopyObject

func (in *PerconaServerMongoDBRestore) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PerconaServerMongoDBRestoreList

type PerconaServerMongoDBRestoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PerconaServerMongoDBRestore `json:"items"`
}

PerconaServerMongoDBRestoreList contains a list of PerconaServerMongoDBRestore

func (*PerconaServerMongoDBRestoreList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBRestoreList.

func (*PerconaServerMongoDBRestoreList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PerconaServerMongoDBRestoreList) DeepCopyObject

func (in *PerconaServerMongoDBRestoreList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PerconaServerMongoDBRestoreSpec

type PerconaServerMongoDBRestoreSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	ClusterName string `json:"clusterName,omitempty"`
	Replset     string `json:"replset,omitempty"`
	BackupName  string `json:"backupName,omitempty"`
	Destination string `json:"destination,omitempty"`
	StorageName string `json:"storageName,omitempty"`
}

PerconaServerMongoDBRestoreSpec defines the desired state of PerconaServerMongoDBRestore

func (*PerconaServerMongoDBRestoreSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBRestoreSpec.

func (*PerconaServerMongoDBRestoreSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PerconaServerMongoDBRestoreStatus

type PerconaServerMongoDBRestoreStatus struct {
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	State          RestoreState `json:"state,omitempty"`
	PBMname        string       `json:"pbmName,omitempty"`
	Error          string       `json:"error,omitempty"`
	CompletedAt    *metav1.Time `json:"completed,omitempty"`
	LastTransition *metav1.Time `json:"lastTransition,omitempty"`
}

PerconaServerMongoDBRestoreStatus defines the observed state of PerconaServerMongoDBRestore

func (*PerconaServerMongoDBRestoreStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBRestoreStatus.

func (*PerconaServerMongoDBRestoreStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PerconaServerMongoDBSpec

type PerconaServerMongoDBSpec struct {
	Pause                   bool                                 `json:"pause,omitempty"`
	Platform                *version.Platform                    `json:"platform,omitempty"`
	Image                   string                               `json:"image,omitempty"`
	ImagePullSecrets        []corev1.LocalObjectReference        `json:"imagePullSecrets,omitempty"`
	RunUID                  int64                                `json:"runUid,omitempty"`
	UnsafeConf              bool                                 `json:"allowUnsafeConfigurations"`
	Mongod                  *MongodSpec                          `json:"mongod,omitempty"`
	Replsets                []*ReplsetSpec                       `json:"replsets,omitempty"`
	Secrets                 *SecretsSpec                         `json:"secrets,omitempty"`
	Backup                  BackupSpec                           `json:"backup,omitempty"`
	ImagePullPolicy         corev1.PullPolicy                    `json:"imagePullPolicy,omitempty"`
	PMM                     PMMSpec                              `json:"pmm,omitempty"`
	UpdateStrategy          appsv1.StatefulSetUpdateStrategyType `json:"updateStrategy,omitempty"`
	SchedulerName           string                               `json:"schedulerName,omitempty"`
	ClusterServiceDNSSuffix string                               `json:"clusterServiceDNSSuffix,omitempty"`
}

PerconaServerMongoDBSpec defines the desired state of PerconaServerMongoDB

func (*PerconaServerMongoDBSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBSpec.

func (*PerconaServerMongoDBSpec) DeepCopyInto

func (in *PerconaServerMongoDBSpec) DeepCopyInto(out *PerconaServerMongoDBSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PerconaServerMongoDBStatus

type PerconaServerMongoDBStatus struct {
	Status             AppState                  `json:"state,omitempty"`
	Message            string                    `json:"message,omitempty"`
	Conditions         []ClusterCondition        `json:"conditions,omitempty"`
	Replsets           map[string]*ReplsetStatus `json:"replsets,omitempty"`
	ObservedGeneration int64                     `json:"observedGeneration,omitempty"`
}

PerconaServerMongoDBStatus defines the observed state of PerconaServerMongoDB

func (*PerconaServerMongoDBStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBStatus.

func (*PerconaServerMongoDBStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Platform

type Platform string

type PodAffinity

type PodAffinity struct {
	TopologyKey *string          `json:"antiAffinityTopologyKey,omitempty"`
	Advanced    *corev1.Affinity `json:"advanced,omitempty"`
}

func (*PodAffinity) DeepCopy

func (in *PodAffinity) DeepCopy() *PodAffinity

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodAffinity.

func (*PodAffinity) DeepCopyInto

func (in *PodAffinity) DeepCopyInto(out *PodAffinity)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodDisruptionBudgetSpec

type PodDisruptionBudgetSpec struct {
	MinAvailable   *intstr.IntOrString `json:"minAvailable,omitempty"`
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
}

func (*PodDisruptionBudgetSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.

func (*PodDisruptionBudgetSpec) DeepCopyInto

func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReplsetMemberStatus

type ReplsetMemberStatus struct {
	Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`
}

func (*ReplsetMemberStatus) DeepCopy

func (in *ReplsetMemberStatus) DeepCopy() *ReplsetMemberStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplsetMemberStatus.

func (*ReplsetMemberStatus) DeepCopyInto

func (in *ReplsetMemberStatus) DeepCopyInto(out *ReplsetMemberStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReplsetSpec

type ReplsetSpec struct {
	Resources                *ResourcesSpec             `json:"resources,omitempty"`
	Name                     string                     `json:"name"`
	Size                     int32                      `json:"size"`
	ClusterRole              ClusterRole                `json:"clusterRole,omitempty"`
	Arbiter                  Arbiter                    `json:"arbiter,omitempty"`
	Expose                   Expose                     `json:"expose,omitempty"`
	VolumeSpec               *VolumeSpec                `json:"volumeSpec,omitempty"`
	ReadinessProbe           *corev1.Probe              `json:"readinessProbe,omitempty"`
	LivenessProbe            *LivenessProbeExtended     `json:"livenessProbe,omitempty"`
	PodSecurityContext       *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`
	ContainerSecurityContext *corev1.SecurityContext    `json:"containerSecurityContext,omitempty"`
	MultiAZ
}

func (*ReplsetSpec) DeepCopy

func (in *ReplsetSpec) DeepCopy() *ReplsetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplsetSpec.

func (*ReplsetSpec) DeepCopyInto

func (in *ReplsetSpec) DeepCopyInto(out *ReplsetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReplsetSpec) SetDefauts

func (rs *ReplsetSpec) SetDefauts(platform version.Platform, unsafe bool, log logr.Logger) error

SetDefauts set default options for the replset

type ReplsetStatus

type ReplsetStatus struct {
	Members     []*ReplsetMemberStatus `json:"members,omitempty"`
	ClusterRole ClusterRole            `json:"clusterRole,omitempty"`

	Initialized bool     `json:"initialized,omitempty"`
	Size        int32    `json:"size"`
	Ready       int32    `json:"ready"`
	Status      AppState `json:"status,omitempty"`
	Message     string   `json:"message,omitempty"`
}

func (*ReplsetStatus) DeepCopy

func (in *ReplsetStatus) DeepCopy() *ReplsetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplsetStatus.

func (*ReplsetStatus) DeepCopyInto

func (in *ReplsetStatus) DeepCopyInto(out *ReplsetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceSpecRequirements

type ResourceSpecRequirements struct {
	CPU    string `json:"cpu,omitempty"`
	Memory string `json:"memory,omitempty"`
}

func (*ResourceSpecRequirements) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpecRequirements.

func (*ResourceSpecRequirements) DeepCopyInto

func (in *ResourceSpecRequirements) DeepCopyInto(out *ResourceSpecRequirements)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourcesSpec

type ResourcesSpec struct {
	Limits   *ResourceSpecRequirements `json:"limits,omitempty"`
	Requests *ResourceSpecRequirements `json:"requests,omitempty"`
}

func (*ResourcesSpec) DeepCopy

func (in *ResourcesSpec) DeepCopy() *ResourcesSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcesSpec.

func (*ResourcesSpec) DeepCopyInto

func (in *ResourcesSpec) DeepCopyInto(out *ResourcesSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RestoreState added in v1.4.0

type RestoreState string

RestoreState is for restore status states

const (
	RestoreStateNew       RestoreState = ""
	RestoreStateWaiting   RestoreState = "waiting"
	RestoreStateRequested RestoreState = "requested"
	RestoreStateRejected  RestoreState = "rejected"
	RestoreStateRunning   RestoreState = "running"
	RestoreStateError     RestoreState = "error"
	RestoreStateReady     RestoreState = "ready"
)

type SecretsSpec

type SecretsSpec struct {
	Users       string `json:"users,omitempty"`
	SSL         string `json:"ssl,omitempty"`
	SSLInternal string `json:"sslInternal,omitempty"`
}

func (*SecretsSpec) DeepCopy

func (in *SecretsSpec) DeepCopy() *SecretsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretsSpec.

func (*SecretsSpec) DeepCopyInto

func (in *SecretsSpec) DeepCopyInto(out *SecretsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerVersion

type ServerVersion struct {
	Platform Platform
	Info     k8sversion.Info
}

ServerVersion represents info about k8s / openshift server version

func (*ServerVersion) DeepCopy

func (in *ServerVersion) DeepCopy() *ServerVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerVersion.

func (*ServerVersion) DeepCopyInto

func (in *ServerVersion) DeepCopyInto(out *ServerVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageEngine

type StorageEngine string
var (
	StorageEngineWiredTiger StorageEngine = "wiredTiger"
	StorageEngineInMemory   StorageEngine = "inMemory"
	StorageEngineMMAPv1     StorageEngine = "mmapv1"
)

type VolumeSpec

type VolumeSpec struct {
	// EmptyDir represents a temporary directory that shares a pod's lifetime.
	EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"`

	// HostPath represents a pre-existing file or directory on the host machine
	// that is directly exposed to the container.
	HostPath *corev1.HostPathVolumeSource `json:"hostPath,omitempty"`

	// PersistentVolumeClaim represents a reference to a PersistentVolumeClaim.
	// It has the highest level of precedence, followed by HostPath and
	// EmptyDir. And represents the PVC specification.
	PersistentVolumeClaim *corev1.PersistentVolumeClaimSpec `json:"persistentVolumeClaim,omitempty"`
}

func (*VolumeSpec) DeepCopy

func (in *VolumeSpec) DeepCopy() *VolumeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec.

func (*VolumeSpec) DeepCopyInto

func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WiredTigerCompressor

type WiredTigerCompressor string
var (
	WiredTigerCompressorNone   WiredTigerCompressor = "none"
	WiredTigerCompressorSnappy WiredTigerCompressor = "snappy"
	WiredTigerCompressorZlib   WiredTigerCompressor = "zlib"
)

Jump to

Keyboard shortcuts

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