Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the everest v1alpha1 API group +kubebuilder:object:generate=true +groupName=everest.percona.com
Index ¶
- Constants
- Variables
- type AppState
- type Backup
- type BackupSchedule
- type BackupSource
- type BackupState
- type BackupStorageProviderSpec
- type BackupStorageType
- type Component
- type ComponentStatus
- type ComponentsMap
- func (c ComponentsMap) BestVersion() string
- func (in ComponentsMap) DeepCopy() ComponentsMap
- func (in ComponentsMap) DeepCopyInto(out *ComponentsMap)
- func (c ComponentsMap) FilterStatus(statuses ...ComponentStatus) ComponentsMap
- func (c ComponentsMap) GetAllowedVersionsSorted() []string
- func (c ComponentsMap) GetSortedVersions() []string
- type DataSource
- type DatabaseCluster
- type DatabaseClusterBackup
- type DatabaseClusterBackupList
- type DatabaseClusterBackupSpec
- type DatabaseClusterBackupStatus
- type DatabaseClusterList
- type DatabaseClusterRestore
- type DatabaseClusterRestoreList
- type DatabaseClusterRestoreSpec
- type DatabaseClusterRestoreStatus
- type DatabaseClusterSpec
- type DatabaseClusterStatus
- type DatabaseEngine
- type DatabaseEngineList
- type DatabaseEngineSpec
- type DatabaseEngineStatus
- type Engine
- type EngineState
- type EngineType
- type Expose
- type ExposeType
- type LoadBalancerType
- type Monitoring
- type ObjectStorage
- type ObjectStorageList
- type ObjectStorageSpec
- type ObjectStorageStatus
- type ObjectStorageType
- type PMMSpec
- type Proxy
- type ProxyType
- type Resources
- type RestoreState
- type Storage
- type Versions
Constants ¶
const ( // AppStateUnknown is an unknown state. AppStateUnknown AppState = "unknown" // AppStateInit is a initializing state. AppStateInit AppState = "initializing" // AppStatePaused is a paused state. AppStatePaused AppState = "paused" // AppStatePausing is a pausing state. AppStatePausing AppState = "pausing" // AppStateStopping is a stopping state. AppStateStopping AppState = "stopping" // AppStateReady is a ready state. AppStateReady AppState = "ready" // AppStateError is an error state. AppStateError AppState = "error" // AppStateRestoring is a restoring state. AppStateRestoring AppState = "restoring" // ExposeTypeInternal is an internal expose type. ExposeTypeInternal ExposeType = "internal" // ExposeTypeExternal is an external expose type. ExposeTypeExternal ExposeType = "external" // ProxyTypeMongos is a mongos proxy type. ProxyTypeMongos ProxyType = "mongos" // ProxyTypeHAProxy is a HAProxy proxy type. ProxyTypeHAProxy ProxyType = "haproxy" // ProxyTypeProxySQL is a ProxySQL proxy type. ProxyTypeProxySQL ProxyType = "proxysql" // ProxyTypePGBouncer is a PGBouncer proxy type. ProxyTypePGBouncer ProxyType = "pgbouncer" )
const ( // DBEngineStateNotInstalled represents the state of engine when underlying operator is not installed. DBEngineStateNotInstalled EngineState = "not installed" // DBEngineStateInstalling represents the state of engine when underlying operator is installing. DBEngineStateInstalling EngineState = "installing" // DBEngineStateInstalled represents the state of engine when underlying operator is installed. DBEngineStateInstalled EngineState = "installed" // DatabaseEnginePXC represents engine type for PXC clusters. DatabaseEnginePXC EngineType = "pxc" // DatabaseEnginePSMDB represents engine type for PSMDB clusters. DatabaseEnginePSMDB EngineType = "psmdb" // DatabaseEnginePostgresql represents engine type for Postgresql clusters. DatabaseEnginePostgresql EngineType = "postgresql" // DBEngineComponentRecommended represents recommended component status. DBEngineComponentRecommended ComponentStatus = "recommended" // DBEngineComponentAvailable represents available component status. DBEngineComponentAvailable ComponentStatus = "available" DBEngineComponentUnavailable ComponentStatus = "unavailable" // DBEngineComponentUnsupported represents unsupported component status. DBEngineComponentUnsupported ComponentStatus = "unsupported" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "everest.percona.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Backup ¶ added in v0.0.3
type Backup struct {
// Enabled is a flag to enable backups
Enabled bool `json:"enabled"`
// Schedules is a list of backup schedules
Schedules []BackupSchedule `json:"schedules,omitempty"`
}
Backup is the backup configuration.
func (*Backup) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.
func (*Backup) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupSchedule ¶
type BackupSchedule struct {
// Enabled is a flag to enable the schedule
Enabled bool `json:"enabled"`
// Name is the name of the schedule
Name string `json:"name"`
// RetentionCopies is the number of backup copies to retain
RetentionCopies int32 `json:"retentionCopies,omitempty"`
// Schedule is the cron schedule
Schedule string `json:"schedule"`
// ObjectStorageName is the name of the ObjectStorage CR that defines the
// storage location
ObjectStorageName string `json:"objectStorageName"`
}
BackupSchedule is the backup schedule configuration.
func (*BackupSchedule) DeepCopy ¶
func (in *BackupSchedule) DeepCopy() *BackupSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSchedule.
func (*BackupSchedule) DeepCopyInto ¶
func (in *BackupSchedule) DeepCopyInto(out *BackupSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupSource ¶
type BackupSource struct {
Destination string `json:"destination,omitempty"`
StorageName string `json:"storageName,omitempty"`
S3 *BackupStorageProviderSpec `json:"s3,omitempty"`
Azure *BackupStorageProviderSpec `json:"azure,omitempty"`
StorageType BackupStorageType `json:"storage_type"`
Image string `json:"image,omitempty"`
SSLSecretName string `json:"sslSecretName,omitempty"`
SSLInternalSecretName string `json:"sslInternalSecretName,omitempty"`
VaultSecretName string `json:"vaultSecretName,omitempty"`
}
BackupSource represents settings of a source where to get a backup to run restoration.
func (*BackupSource) DeepCopy ¶
func (in *BackupSource) DeepCopy() *BackupSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSource.
func (*BackupSource) DeepCopyInto ¶
func (in *BackupSource) DeepCopyInto(out *BackupSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStorageProviderSpec ¶
type BackupStorageProviderSpec struct {
// A container name is a valid DNS name that conforms to the Azure naming rules.
ContainerName string `json:"containerName,omitempty"`
Bucket string `json:"bucket,omitempty"`
Prefix string `json:"prefix,omitempty"`
CredentialsSecret string `json:"credentialsSecret"`
Region string `json:"region,omitempty"`
EndpointURL string `json:"endpointUrl,omitempty"`
// STANDARD, NEARLINE, COLDLINE, ARCHIVE for GCP
// Hot (Frequently accessed or modified data), Cool (Infrequently accessed or modified data), Archive (Rarely accessed or modified data) for Azure.
StorageClass string `json:"storageClass,omitempty"`
}
BackupStorageProviderSpec represents set of settings to configure cloud provider.
func (*BackupStorageProviderSpec) DeepCopy ¶
func (in *BackupStorageProviderSpec) DeepCopy() *BackupStorageProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageProviderSpec.
func (*BackupStorageProviderSpec) DeepCopyInto ¶
func (in *BackupStorageProviderSpec) DeepCopyInto(out *BackupStorageProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStorageType ¶
type BackupStorageType string
BackupStorageType represents backup storage type.
const ( // BackupStorageFilesystem represents file system storage type. BackupStorageFilesystem BackupStorageType = "filesystem" // BackupStorageS3 represents s3 storage. BackupStorageS3 BackupStorageType = "s3" // BackupStorageGCS represents Google Cloud storage. BackupStorageGCS BackupStorageType = "gcs" // BackupStorageAzure represents azure storage. BackupStorageAzure BackupStorageType = "azure" )
type Component ¶
type Component struct {
Critical bool `json:"critical,omitempty"`
ImageHash string `json:"imageHash,omitempty"`
ImagePath string `json:"imagePath,omitempty"`
Status ComponentStatus `json:"status,omitempty"`
}
Component contains information of the database engine component. Database Engine component can be database engine, database proxy or tools image path.
func (*Component) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentStatus ¶ added in v0.0.3
type ComponentStatus string
ComponentStatus represents status of the database engine component.
type ComponentsMap ¶ added in v0.0.3
ComponentsMap is a map of database engine components.
func (ComponentsMap) BestVersion ¶ added in v0.0.3
func (c ComponentsMap) BestVersion() string
BestVersion returns the best version for the components map.
func (ComponentsMap) DeepCopy ¶ added in v0.0.3
func (in ComponentsMap) DeepCopy() ComponentsMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentsMap.
func (ComponentsMap) DeepCopyInto ¶ added in v0.0.3
func (in ComponentsMap) DeepCopyInto(out *ComponentsMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ComponentsMap) FilterStatus ¶ added in v0.0.3
func (c ComponentsMap) FilterStatus(statuses ...ComponentStatus) ComponentsMap
FilterStatus returns a new ComponentsMap with components filtered by status.
func (ComponentsMap) GetAllowedVersionsSorted ¶ added in v0.0.3
func (c ComponentsMap) GetAllowedVersionsSorted() []string
GetAllowedVersionsSorted returns a sorted slice of allowed versions. An allowed version is a version whose status is either recommended or available. Allowed versions are sorted by status, with recommended versions first, followed by available versions. Versions with the same status are sorted by version in descending order. Most recent version is first.
func (ComponentsMap) GetSortedVersions ¶ added in v0.0.3
func (c ComponentsMap) GetSortedVersions() []string
GetSortedVersions returns a sorted slice of versions. Versions are sorted in descending order. Most recent version is first.
type DataSource ¶ added in v0.0.3
type DataSource struct {
// BackupName is the name of the backup from backup location to use
BackupName string `json:"backupName"`
// ObjectStorageName is the name of the ObjectStorage CR that defines the
// storage location
ObjectStorageName string `json:"objectStorageName"`
}
DataSource is the data source configuration.
func (*DataSource) DeepCopy ¶ added in v0.0.3
func (in *DataSource) DeepCopy() *DataSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSource.
func (*DataSource) DeepCopyInto ¶ added in v0.0.3
func (in *DataSource) DeepCopyInto(out *DataSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseCluster ¶
type DatabaseCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseClusterSpec `json:"spec,omitempty"`
Status DatabaseClusterStatus `json:"status,omitempty"`
}
DatabaseCluster is the Schema for the databaseclusters API.
func (*DatabaseCluster) DeepCopy ¶
func (in *DatabaseCluster) DeepCopy() *DatabaseCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseCluster.
func (*DatabaseCluster) DeepCopyInto ¶
func (in *DatabaseCluster) DeepCopyInto(out *DatabaseCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseCluster) DeepCopyObject ¶
func (in *DatabaseCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterBackup ¶
type DatabaseClusterBackup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseClusterBackupSpec `json:"spec,omitempty"`
Status DatabaseClusterBackupStatus `json:"status,omitempty"`
}
DatabaseClusterBackup is the Schema for the databaseclusterbackups API.
func (*DatabaseClusterBackup) DeepCopy ¶
func (in *DatabaseClusterBackup) DeepCopy() *DatabaseClusterBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterBackup.
func (*DatabaseClusterBackup) DeepCopyInto ¶
func (in *DatabaseClusterBackup) DeepCopyInto(out *DatabaseClusterBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseClusterBackup) DeepCopyObject ¶
func (in *DatabaseClusterBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterBackupList ¶
type DatabaseClusterBackupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseClusterBackup `json:"items"`
}
DatabaseClusterBackupList contains a list of DatabaseClusterBackup.
func (*DatabaseClusterBackupList) DeepCopy ¶
func (in *DatabaseClusterBackupList) DeepCopy() *DatabaseClusterBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterBackupList.
func (*DatabaseClusterBackupList) DeepCopyInto ¶
func (in *DatabaseClusterBackupList) DeepCopyInto(out *DatabaseClusterBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseClusterBackupList) DeepCopyObject ¶
func (in *DatabaseClusterBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterBackupSpec ¶
type DatabaseClusterBackupSpec struct {
// Name is the backup name.
Name string `json:"name"`
// DBClusterName is the original database cluster name.
DBClusterName string `json:"dbClusterName"`
// Destination is the full path to the backup.
Destination string `json:"destination"`
// BackupSource is the object with the storage location info.
BackupSource BackupSource `json:"backupSource"`
}
DatabaseClusterBackupSpec defines the desired state of DatabaseClusterBackup.
func (*DatabaseClusterBackupSpec) DeepCopy ¶
func (in *DatabaseClusterBackupSpec) DeepCopy() *DatabaseClusterBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterBackupSpec.
func (*DatabaseClusterBackupSpec) DeepCopyInto ¶
func (in *DatabaseClusterBackupSpec) DeepCopyInto(out *DatabaseClusterBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseClusterBackupStatus ¶
type DatabaseClusterBackupStatus struct {
// Completed is the time when the job was completed.
Completed *metav1.Time `json:"completed"`
// State is the DatabaseBackup state.
State BackupState `json:"state"`
}
DatabaseClusterBackupStatus defines the observed state of DatabaseClusterBackup.
func (*DatabaseClusterBackupStatus) DeepCopy ¶
func (in *DatabaseClusterBackupStatus) DeepCopy() *DatabaseClusterBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterBackupStatus.
func (*DatabaseClusterBackupStatus) DeepCopyInto ¶
func (in *DatabaseClusterBackupStatus) DeepCopyInto(out *DatabaseClusterBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseClusterList ¶
type DatabaseClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseCluster `json:"items"`
}
DatabaseClusterList contains a list of DatabaseCluster.
func (*DatabaseClusterList) DeepCopy ¶
func (in *DatabaseClusterList) DeepCopy() *DatabaseClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterList.
func (*DatabaseClusterList) DeepCopyInto ¶
func (in *DatabaseClusterList) DeepCopyInto(out *DatabaseClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseClusterList) DeepCopyObject ¶
func (in *DatabaseClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterRestore ¶
type DatabaseClusterRestore struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseClusterRestoreSpec `json:"spec,omitempty"`
Status DatabaseClusterRestoreStatus `json:"status,omitempty"`
}
DatabaseClusterRestore is the Schema for the databaseclusterrestores API.
func (*DatabaseClusterRestore) DeepCopy ¶
func (in *DatabaseClusterRestore) DeepCopy() *DatabaseClusterRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestore.
func (*DatabaseClusterRestore) DeepCopyInto ¶
func (in *DatabaseClusterRestore) DeepCopyInto(out *DatabaseClusterRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseClusterRestore) DeepCopyObject ¶
func (in *DatabaseClusterRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterRestoreList ¶
type DatabaseClusterRestoreList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseClusterRestore `json:"items"`
}
DatabaseClusterRestoreList contains a list of DatabaseClusterRestore.
func (*DatabaseClusterRestoreList) DeepCopy ¶
func (in *DatabaseClusterRestoreList) DeepCopy() *DatabaseClusterRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestoreList.
func (*DatabaseClusterRestoreList) DeepCopyInto ¶
func (in *DatabaseClusterRestoreList) DeepCopyInto(out *DatabaseClusterRestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseClusterRestoreList) DeepCopyObject ¶
func (in *DatabaseClusterRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterRestoreSpec ¶
type DatabaseClusterRestoreSpec struct {
DatabaseCluster string `json:"databaseCluster"`
DatabaseType EngineType `json:"databaseType"`
BackupName string `json:"backupName,omitempty"`
BackupSource *BackupSource `json:"backupSource,omitempty"`
}
DatabaseClusterRestoreSpec defines the desired state of DatabaseClusterRestore.
func (*DatabaseClusterRestoreSpec) DeepCopy ¶
func (in *DatabaseClusterRestoreSpec) DeepCopy() *DatabaseClusterRestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestoreSpec.
func (*DatabaseClusterRestoreSpec) DeepCopyInto ¶
func (in *DatabaseClusterRestoreSpec) DeepCopyInto(out *DatabaseClusterRestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseClusterRestoreStatus ¶
type DatabaseClusterRestoreStatus struct {
State RestoreState `json:"state,omitempty"`
CompletedAt *metav1.Time `json:"completed,omitempty"`
LastScheduled *metav1.Time `json:"lastscheduled,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
Message string `json:"message,omitempty"`
Destination string `json:"destination,omitempty"`
StorageName string `json:"storageName,omitempty"`
}
DatabaseClusterRestoreStatus defines the observed state of DatabaseClusterRestore.
func (*DatabaseClusterRestoreStatus) DeepCopy ¶
func (in *DatabaseClusterRestoreStatus) DeepCopy() *DatabaseClusterRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestoreStatus.
func (*DatabaseClusterRestoreStatus) DeepCopyInto ¶
func (in *DatabaseClusterRestoreStatus) DeepCopyInto(out *DatabaseClusterRestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseClusterSpec ¶ added in v0.0.3
type DatabaseClusterSpec struct {
// Paused is a flag to stop the cluster
Paused bool `json:"paused,omitempty"`
// Engine is the database engine specification
Engine Engine `json:"engine"`
// Proxy is the proxy specification. If not set, an appropriate
// proxy specification will be applied for the given engine. A
// common use case for setting this field is to control the
// external access to the database cluster.
Proxy Proxy `json:"proxy,omitempty"`
// DataSource defines a data source for bootstraping a new cluster
DataSource *DataSource `json:"dataSource,omitempty"`
// Backup is the backup specification
Backup Backup `json:"backup,omitempty"`
// Monitoring is the monitoring specification
Monitoring Monitoring `json:"monitoring,omitempty"`
}
DatabaseClusterSpec defines the desired state of DatabaseCluster.
func (*DatabaseClusterSpec) DeepCopy ¶ added in v0.0.3
func (in *DatabaseClusterSpec) DeepCopy() *DatabaseClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterSpec.
func (*DatabaseClusterSpec) DeepCopyInto ¶ added in v0.0.3
func (in *DatabaseClusterSpec) DeepCopyInto(out *DatabaseClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseClusterStatus ¶
type DatabaseClusterStatus struct {
// Status is the status of the cluster
Status AppState `json:"status,omitempty"`
// Hostname is the hostname where the cluster can be reached
Hostname string `json:"hostname,omitempty"`
// Port is the port where the cluster can be reached
Port int32 `json:"port,omitempty"`
// Ready is the number of ready pods
Ready int32 `json:"ready,omitempty"`
// Size is the total number of pods
Size int32 `json:"size,omitempty"`
// Message is extra information about the cluster
Message string `json:"message,omitempty"`
}
DatabaseClusterStatus defines the observed state of DatabaseCluster.
func (*DatabaseClusterStatus) DeepCopy ¶
func (in *DatabaseClusterStatus) DeepCopy() *DatabaseClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterStatus.
func (*DatabaseClusterStatus) DeepCopyInto ¶
func (in *DatabaseClusterStatus) DeepCopyInto(out *DatabaseClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseEngine ¶
type DatabaseEngine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseEngineSpec `json:"spec,omitempty"`
Status DatabaseEngineStatus `json:"status,omitempty"`
}
DatabaseEngine is the Schema for the databaseengines API.
func (DatabaseEngine) BestBackupVersion ¶ added in v0.0.3
func (d DatabaseEngine) BestBackupVersion(engineVersion string) string
BestBackupVersion returns the best backup version for a given engine version.
func (DatabaseEngine) BestEngineVersion ¶ added in v0.0.3
func (d DatabaseEngine) BestEngineVersion() string
BestEngineVersion returns the best engine version for the database engine.
func (*DatabaseEngine) DeepCopy ¶
func (in *DatabaseEngine) DeepCopy() *DatabaseEngine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngine.
func (*DatabaseEngine) DeepCopyInto ¶
func (in *DatabaseEngine) DeepCopyInto(out *DatabaseEngine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseEngine) DeepCopyObject ¶
func (in *DatabaseEngine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseEngineList ¶
type DatabaseEngineList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseEngine `json:"items"`
}
DatabaseEngineList contains a list of DatabaseEngine.
func (*DatabaseEngineList) DeepCopy ¶
func (in *DatabaseEngineList) DeepCopy() *DatabaseEngineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngineList.
func (*DatabaseEngineList) DeepCopyInto ¶
func (in *DatabaseEngineList) DeepCopyInto(out *DatabaseEngineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseEngineList) DeepCopyObject ¶
func (in *DatabaseEngineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseEngineSpec ¶
type DatabaseEngineSpec struct {
Type EngineType `json:"type"`
AllowedVersions []string `json:"allowedVersions,omitempty"`
}
DatabaseEngineSpec is a spec for a database engine.
func (*DatabaseEngineSpec) DeepCopy ¶
func (in *DatabaseEngineSpec) DeepCopy() *DatabaseEngineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngineSpec.
func (*DatabaseEngineSpec) DeepCopyInto ¶
func (in *DatabaseEngineSpec) DeepCopyInto(out *DatabaseEngineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseEngineStatus ¶
type DatabaseEngineStatus struct {
State EngineState `json:"status,omitempty"`
OperatorVersion string `json:"operatorVersion,omitempty"`
AvailableVersions Versions `json:"availableVersions,omitempty"`
}
DatabaseEngineStatus defines the observed state of DatabaseEngine.
func (*DatabaseEngineStatus) DeepCopy ¶
func (in *DatabaseEngineStatus) DeepCopy() *DatabaseEngineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngineStatus.
func (*DatabaseEngineStatus) DeepCopyInto ¶
func (in *DatabaseEngineStatus) DeepCopyInto(out *DatabaseEngineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Engine ¶ added in v0.0.3
type Engine struct {
// Type is the engine type
Type EngineType `json:"type"`
// Version is the engine version
Version string `json:"version,omitempty"`
// Replicas is the number of engine replicas
Replicas int32 `json:"replicas,omitempty"`
// Storage is the engine storage configuration
Storage Storage `json:"storage"`
// Resources are the resource limits for each engine replica.
// If not set, resource limits are not imposed
Resources Resources `json:"resources,omitempty"`
// Config is the engine configuration
Config string `json:"config,omitempty"`
// UserSecretsName is the name of the secret containing the user secrets
UserSecretsName string `json:"userSecretsName,omitempty"`
}
Engine is the engine configuration.
func (*Engine) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Engine.
func (*Engine) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineType ¶
type EngineType string
EngineType stands for the supported database engines. Right now it's only pxc and psmdb. However, it can be ps, pg and any other source.
type Expose ¶ added in v0.0.3
type Expose struct {
// Type is the expose type, can be internal or external
// +kubebuilder:validation:Enum:=internal;external
// +kubebuilder:default:=internal
Type ExposeType `json:"type,omitempty"`
// IPSourceRanges is the list of IP source ranges (CIDR notation)
// to allow access from. If not set, there is no limitations
IPSourceRanges []string `json:"ipSourceRanges,omitempty"`
}
Expose is the expose configuration.
func (*Expose) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Expose.
func (*Expose) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerType ¶
type LoadBalancerType string
LoadBalancerType contains supported loadbalancers. It can be proxysql or haproxy for PXC clusters, mongos for PSMDB clusters or pgbouncer for Postgresql clusters.
type Monitoring ¶ added in v0.0.3
type Monitoring struct {
// Enabled is a flag to enable monitoring
Enabled bool `json:"enabled"`
PMM *PMMSpec `json:"pmm,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}
Monitoring contains monitoring settings.
func (*Monitoring) DeepCopy ¶ added in v0.0.3
func (in *Monitoring) DeepCopy() *Monitoring
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Monitoring.
func (*Monitoring) DeepCopyInto ¶ added in v0.0.3
func (in *Monitoring) DeepCopyInto(out *Monitoring)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectStorage ¶ added in v0.0.3
type ObjectStorage struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ObjectStorageSpec `json:"spec,omitempty"`
Status ObjectStorageStatus `json:"status,omitempty"`
}
ObjectStorage is the Schema for the objectstorages API.
func (*ObjectStorage) DeepCopy ¶ added in v0.0.3
func (in *ObjectStorage) DeepCopy() *ObjectStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorage.
func (*ObjectStorage) DeepCopyInto ¶ added in v0.0.3
func (in *ObjectStorage) DeepCopyInto(out *ObjectStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectStorage) DeepCopyObject ¶ added in v0.0.3
func (in *ObjectStorage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ObjectStorageList ¶ added in v0.0.3
type ObjectStorageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ObjectStorage `json:"items"`
}
ObjectStorageList contains a list of ObjectStorage.
func (*ObjectStorageList) DeepCopy ¶ added in v0.0.3
func (in *ObjectStorageList) DeepCopy() *ObjectStorageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageList.
func (*ObjectStorageList) DeepCopyInto ¶ added in v0.0.3
func (in *ObjectStorageList) DeepCopyInto(out *ObjectStorageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectStorageList) DeepCopyObject ¶ added in v0.0.3
func (in *ObjectStorageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ObjectStorageSpec ¶ added in v0.0.3
type ObjectStorageSpec struct {
// Type is a type of object storage. Currently only S3 is supported.
// +kubebuilder:validation:Enum=s3
Type ObjectStorageType `json:"type"`
// Bucket is a name of bucket.
Bucket string `json:"bucket"`
// Region is a region where the bucket is located.
Region string `json:"region"`
// EndpointURL is an endpoint URL of object storage.
EndpointURL string `json:"endpointURL"`
// CredentialsSecretName is the name of the secret with credentials.
CredentialsSecretName string `json:"credentialsSecretName"`
}
ObjectStorageSpec defines the desired state of ObjectStorage.
func (*ObjectStorageSpec) DeepCopy ¶ added in v0.0.3
func (in *ObjectStorageSpec) DeepCopy() *ObjectStorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageSpec.
func (*ObjectStorageSpec) DeepCopyInto ¶ added in v0.0.3
func (in *ObjectStorageSpec) DeepCopyInto(out *ObjectStorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectStorageStatus ¶ added in v0.0.3
type ObjectStorageStatus struct{}
ObjectStorageStatus defines the observed state of ObjectStorage.
func (*ObjectStorageStatus) DeepCopy ¶ added in v0.0.3
func (in *ObjectStorageStatus) DeepCopy() *ObjectStorageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageStatus.
func (*ObjectStorageStatus) DeepCopyInto ¶ added in v0.0.3
func (in *ObjectStorageStatus) DeepCopyInto(out *ObjectStorageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectStorageType ¶ added in v0.0.3
type ObjectStorageType string
ObjectStorageType is a type of object storage.
const ( // ObjectStorageTypeS3 is a type of S3 object storage. ObjectStorageTypeS3 ObjectStorageType = "s3" )
type PMMSpec ¶
type PMMSpec struct {
Image string `json:"image,omitempty"`
ServerHost string `json:"serverHost,omitempty"`
ServerUser string `json:"serverUser,omitempty"`
PublicAddress string `json:"publicAddress,omitempty"`
Login string `json:"login,omitempty"`
Password string `json:"password,omitempty"`
}
PMMSpec contains PMM settings.
func (*PMMSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PMMSpec.
func (*PMMSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Proxy ¶ added in v0.0.3
type Proxy struct {
// Type is the proxy type
// +kubebuilder:validation:Enum:=mongos;haproxy;proxysql;pgbouncer
Type ProxyType `json:"type,omitempty"`
// Replicas is the number of proxy replicas
Replicas *int32 `json:"replicas,omitempty"`
// Config is the proxy configuration
Config string `json:"config,omitempty"`
// Expose is the proxy expose configuration
Expose Expose `json:"expose,omitempty"`
// Resources are the resource limits for each proxy replica.
// If not set, resource limits are not imposed
Resources Resources `json:"resources,omitempty"`
}
Proxy is the proxy configuration.
func (*Proxy) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Proxy.
func (*Proxy) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resources ¶ added in v0.0.3
type Resources struct {
// CPU is the CPU resource requirements
CPU resource.Quantity `json:"cpu,omitempty"`
// Memory is the memory resource requirements
Memory resource.Quantity `json:"memory,omitempty"`
}
Resources are the resource requirements.
func (*Resources) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Storage ¶ added in v0.0.3
type Storage struct {
// Size is the size of the persistent volume claim
Size resource.Quantity `json:"size"`
// Class is the storage class to use for the persistent volume claim
Class *string `json:"class,omitempty"`
}
Storage is the storage configuration.
func (*Storage) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Versions ¶
type Versions struct {
Engine ComponentsMap `json:"engine,omitempty"`
Backup ComponentsMap `json:"backup,omitempty"`
Proxy map[ProxyType]ComponentsMap `json:"proxy,omitempty"`
Tools map[string]ComponentsMap `json:"tools,omitempty"`
}
Versions struct represents available versions of database engine components.
func (*Versions) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Versions.
func (*Versions) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.