Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the psmdb v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=psmdb.percona.com
Package v1alpha1 contains API Schema definitions for the psmdb v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=psmdb.percona.com
Index ¶
- Constants
- Variables
- type Arbiter
- type AuditLogDestination
- type AuditLogFormat
- type BackupCompressionType
- type BackupCoordinatorSpec
- type BackupDestinationType
- type BackupSpec
- type BackupStorageS3Spec
- type BackupStorageSpec
- type BackupStorageType
- type BackupTaskSpec
- type ClusterRole
- type Expose
- type MongodSpec
- type MongodSpecAuditLog
- type MongodSpecInMemory
- type MongodSpecInMemoryEngineConfig
- type MongodSpecMMAPv1
- type MongodSpecNet
- type MongodSpecOperationProfiling
- type MongodSpecReplication
- type MongodSpecSecurity
- type MongodSpecSetParameter
- type MongodSpecStorage
- type MongodSpecWiredTiger
- type MongodSpecWiredTigerCollectionConfig
- type MongodSpecWiredTigerEngineConfig
- type MongodSpecWiredTigerIndexConfig
- type MongosSpec
- type MultiAZ
- type OperationProfilingMode
- type PMMSpec
- type PerconaServerMongoDB
- func (cr *PerconaServerMongoDB) CheckNSetDefaults(platform version.Platform, log logr.Logger) error
- func (in *PerconaServerMongoDB) DeepCopy() *PerconaServerMongoDB
- func (in *PerconaServerMongoDB) DeepCopyInto(out *PerconaServerMongoDB)
- func (in *PerconaServerMongoDB) DeepCopyObject() runtime.Object
- func (cr *PerconaServerMongoDB) OwnerRef(scheme *runtime.Scheme) (metav1.OwnerReference, error)
- type PerconaServerMongoDBList
- type PerconaServerMongoDBSpec
- type PerconaServerMongoDBStatus
- type Platform
- type PodAffinity
- type PodDisruptionBudgetSpec
- type ReplsetMemberStatus
- type ReplsetSpec
- type ReplsetStatus
- type ResourceSpecRequirements
- type ResourcesSpec
- type SecretsSpec
- type ServerVersion
- type StorageEngine
- type VolumeSpec
- type WiredTigerCompressor
Constants ¶
const ( PlatformUndef Platform = "" PlatformKubernetes = "kubernetes" PlatformOpenshift = "openshift" )
const AffinityOff = "none"
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "psmdb.percona.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type Arbiter ¶ added in v0.2.0
func (*Arbiter) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Arbiter.
func (*Arbiter) DeepCopyInto ¶ added in v0.2.0
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 BackupCompressionType ¶ added in v0.2.0
type BackupCompressionType string
var (
BackupCompressionGzip BackupCompressionType = "gzip"
)
type BackupCoordinatorSpec ¶ added in v0.2.0
type BackupCoordinatorSpec struct { Resources *corev1.ResourceRequirements `json:"resources,omitempty"` StorageClass string `json:"storageClass,omitempty"` EnableClientsLogging bool `json:"enableClientsLogging,omitempty"` MultiAZ }
func (*BackupCoordinatorSpec) DeepCopy ¶ added in v0.2.0
func (in *BackupCoordinatorSpec) DeepCopy() *BackupCoordinatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupCoordinatorSpec.
func (*BackupCoordinatorSpec) DeepCopyInto ¶ added in v0.2.0
func (in *BackupCoordinatorSpec) DeepCopyInto(out *BackupCoordinatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupDestinationType ¶ added in v0.2.0
type BackupDestinationType string
var ( BackupDestinationS3 BackupDestinationType = "s3" BackupDestinationFile BackupDestinationType = "file" )
type BackupSpec ¶ added in v0.2.0
type BackupSpec struct { Enabled bool `json:"enabled"` Debug bool `json:"debug"` RestartOnFailure *bool `json:"restartOnFailure,omitempty"` Coordinator BackupCoordinatorSpec `json:"coordinator,omitempty"` Storages map[string]BackupStorageSpec `json:"storages,omitempty"` Image string `json:"image,omitempty"` Tasks []BackupTaskSpec `json:"tasks,omitempty"` }
func (*BackupSpec) DeepCopy ¶ added in v0.2.0
func (in *BackupSpec) DeepCopy() *BackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.
func (*BackupSpec) DeepCopyInto ¶ added in v0.2.0
func (in *BackupSpec) DeepCopyInto(out *BackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStorageS3Spec ¶ added in v0.2.1
type BackupStorageS3Spec struct { Bucket string `json:"bucket"` CredentialsSecret string `json:"credentialsSecret"` Region string `json:"region,omitempty"` EndpointURL string `json:"endpointUrl,omitempty"` }
func (*BackupStorageS3Spec) DeepCopy ¶ added in v0.2.1
func (in *BackupStorageS3Spec) DeepCopy() *BackupStorageS3Spec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageS3Spec.
func (*BackupStorageS3Spec) DeepCopyInto ¶ added in v0.2.1
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 ¶ added in v0.2.1
type BackupStorageSpec struct { Type BackupStorageType `json:"type"` S3 BackupStorageS3Spec `json:"s3,omitempty"` }
func (*BackupStorageSpec) DeepCopy ¶ added in v0.2.1
func (in *BackupStorageSpec) DeepCopy() *BackupStorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageSpec.
func (*BackupStorageSpec) DeepCopyInto ¶ added in v0.2.1
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 ¶ added in v0.2.1
type BackupStorageType string
const ( BackupStorageFilesystem BackupStorageType = "filesystem" BackupStorageS3 BackupStorageType = "s3" )
type BackupTaskSpec ¶ added in v0.2.0
type BackupTaskSpec struct { Name string `json:"name"` Enabled bool `json:"enabled"` Schedule string `json:"schedule,omitempty"` StorageName string `json:"storageName,omitempty"` CompressionType BackupCompressionType `json:"compressionType,omitempty"` }
func (*BackupTaskSpec) DeepCopy ¶ added in v0.2.0
func (in *BackupTaskSpec) DeepCopy() *BackupTaskSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTaskSpec.
func (*BackupTaskSpec) DeepCopyInto ¶ added in v0.2.0
func (in *BackupTaskSpec) DeepCopyInto(out *BackupTaskSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterRole ¶
type ClusterRole string
const ( ClusterRoleShardSvr ClusterRole = "shardsvr" ClusterRoleConfigSvr ClusterRole = "configsvr" )
type Expose ¶ added in v0.2.0
type Expose struct { Enabled bool `json:"enabled"` ExposeType corev1.ServiceType `json:"exposeType,omitempty"` }
func (*Expose) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Expose.
func (*Expose) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (in *MongodSpecInMemoryEngineConfig) DeepCopy() *MongodSpecInMemoryEngineConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecInMemoryEngineConfig.
func (*MongodSpecInMemoryEngineConfig) DeepCopyInto ¶
func (in *MongodSpecInMemoryEngineConfig) DeepCopyInto(out *MongodSpecInMemoryEngineConfig)
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 ¶
func (in *MongodSpecOperationProfiling) DeepCopy() *MongodSpecOperationProfiling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecOperationProfiling.
func (*MongodSpecOperationProfiling) DeepCopyInto ¶
func (in *MongodSpecOperationProfiling) DeepCopyInto(out *MongodSpecOperationProfiling)
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 ¶
func (in *MongodSpecReplication) DeepCopy() *MongodSpecReplication
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"`
}
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 ¶
func (in *MongodSpecSetParameter) DeepCopy() *MongodSpecSetParameter
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 ¶
func (in *MongodSpecWiredTiger) DeepCopy() *MongodSpecWiredTiger
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 ¶
func (in *MongodSpecWiredTigerCollectionConfig) DeepCopy() *MongodSpecWiredTigerCollectionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTigerCollectionConfig.
func (*MongodSpecWiredTigerCollectionConfig) DeepCopyInto ¶
func (in *MongodSpecWiredTigerCollectionConfig) DeepCopyInto(out *MongodSpecWiredTigerCollectionConfig)
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 ¶
func (in *MongodSpecWiredTigerEngineConfig) DeepCopy() *MongodSpecWiredTigerEngineConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTigerEngineConfig.
func (*MongodSpecWiredTigerEngineConfig) DeepCopyInto ¶
func (in *MongodSpecWiredTigerEngineConfig) DeepCopyInto(out *MongodSpecWiredTigerEngineConfig)
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 ¶
func (in *MongodSpecWiredTigerIndexConfig) DeepCopy() *MongodSpecWiredTigerIndexConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongodSpecWiredTigerIndexConfig.
func (*MongodSpecWiredTigerIndexConfig) DeepCopyInto ¶
func (in *MongodSpecWiredTigerIndexConfig) DeepCopyInto(out *MongodSpecWiredTigerIndexConfig)
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiAZ.
func (*MultiAZ) DeepCopyInto ¶ added in v0.3.0
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 ¶ added in v0.3.0
type PMMSpec struct { Enabled bool `json:"enabled,omitempty"` ServerHost string `json:"serverHost,omitempty"` Image string `json:"image,omitempty"` }
func (*PMMSpec) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PMMSpec.
func (*PMMSpec) DeepCopyInto ¶ added in v0.3.0
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 ¶ added in v0.3.0
CheckNSetDefaults sets default options, overwrites wrong settings and checks if other options' values valid
func (*PerconaServerMongoDB) DeepCopy ¶
func (in *PerconaServerMongoDB) DeepCopy() *PerconaServerMongoDB
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 ¶ added in v0.3.0
func (cr *PerconaServerMongoDB) OwnerRef(scheme *runtime.Scheme) (metav1.OwnerReference, error)
OwnerRef returns OwnerReference to object
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 ¶
func (in *PerconaServerMongoDBList) DeepCopy() *PerconaServerMongoDBList
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 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"` }
PerconaServerMongoDBSpec defines the desired state of PerconaServerMongoDB
func (*PerconaServerMongoDBSpec) DeepCopy ¶
func (in *PerconaServerMongoDBSpec) DeepCopy() *PerconaServerMongoDBSpec
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 {
Replsets map[string]*ReplsetStatus `json:"replsets,omitempty"`
}
PerconaServerMongoDBStatus defines the observed state of PerconaServerMongoDB
func (*PerconaServerMongoDBStatus) DeepCopy ¶
func (in *PerconaServerMongoDBStatus) DeepCopy() *PerconaServerMongoDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerconaServerMongoDBStatus.
func (*PerconaServerMongoDBStatus) DeepCopyInto ¶
func (in *PerconaServerMongoDBStatus) DeepCopyInto(out *PerconaServerMongoDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodAffinity ¶ added in v0.3.0
type PodAffinity struct { TopologyKey *string `json:"antiAffinityTopologyKey,omitempty"` Advanced *corev1.Affinity `json:"advanced,omitempty"` }
func (*PodAffinity) DeepCopy ¶ added in v0.3.0
func (in *PodAffinity) DeepCopy() *PodAffinity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodAffinity.
func (*PodAffinity) DeepCopyInto ¶ added in v0.3.0
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 ¶ added in v0.3.0
type PodDisruptionBudgetSpec struct { MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"` }
func (*PodDisruptionBudgetSpec) DeepCopy ¶ added in v0.3.0
func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
func (*PodDisruptionBudgetSpec) DeepCopyInto ¶ added in v0.3.0
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"` 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 ¶ added in v0.3.0
func (rs *ReplsetSpec) SetDefauts(unsafe bool, log logr.Logger) error
SetDefauts set default options for the replset
type ReplsetStatus ¶
type ReplsetStatus struct { Name string `json:"name,omitempty"` Pods []string `json:"pods,omitempty"` Members []*ReplsetMemberStatus `json:"members,omitempty"` ClusterRole ClusterRole `json:"clusterRole,omitempty"` Initialized bool `json:"initialized,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 ¶
func (in *ResourceSpecRequirements) DeepCopy() *ResourceSpecRequirements
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 SecretsSpec ¶
type SecretsSpec struct {
Users string `json:"users,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 ¶ added in v0.3.0
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"` }
type WiredTigerCompressor ¶
type WiredTigerCompressor string
var ( WiredTigerCompressorNone WiredTigerCompressor = "none" WiredTigerCompressorSnappy WiredTigerCompressor = "snappy" WiredTigerCompressorZlib WiredTigerCompressor = "zlib" )