Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the dbaas v1 API group +kubebuilder:object:generate=true +groupName=dbaas.percona.com
Index ¶
- Constants
- Variables
- type AppState
- type BackupSchedule
- type BackupSource
- type BackupSpec
- type BackupStorageProviderSpec
- type BackupStorageSpec
- type BackupStorageType
- type DBInstanceSpec
- type DatabaseCluster
- type DatabaseClusterList
- type DatabaseClusterRestore
- type DatabaseClusterRestoreList
- type DatabaseClusterRestoreSpec
- type DatabaseClusterRestoreStatus
- type DatabaseClusterStatus
- type DatabaseEngine
- type DatabaseEngineList
- type DatabaseEngineSpec
- type DatabaseEngineStatus
- type DatabaseSpec
- type EngineState
- type EngineType
- type LoadBalancerSpec
- type LoadBalancerType
- type MonitoringSpec
- type PMMSpec
- type RestoreState
- type VolumeSpec
Constants ¶
const ( // PXCEngine represents engine type for PXC clusters. PXCEngine EngineType = "pxc" // PSMDBEngine represents engine type for PSMDB clusters. PSMDBEngine EngineType = "psmdb" // LoadBalancerMongos represents mongos load balancer. LoadBalancerMongos LoadBalancerType = "mongos" // LoadBalancerHAProxy represents haproxy load balancer. LoadBalancerHAProxy LoadBalancerType = "haproxy" // LoadBalancerProxySQL represents proxySQL load balancer. LoadBalancerProxySQL LoadBalancerType = "proxysql" // 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" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "dbaas.percona.com", Version: "v1"} // 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 BackupSchedule ¶ added in v0.0.18
type BackupSchedule struct {
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled,omitempty"`
Schedule string `json:"schedule,omitempty"`
Keep int `json:"keep,omitempty"`
StorageName string `json:"storageName,omitempty"`
CompressionType compress.CompressionType `json:"compressionType,omitempty"`
CompressionLevel *int `json:"compressionLevel,omitempty"`
}
BackupSchedule represents set of settings to configure backup schedule.
func (*BackupSchedule) DeepCopy ¶ added in v0.0.18
func (in *BackupSchedule) DeepCopy() *BackupSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSchedule.
func (*BackupSchedule) DeepCopyInto ¶ added in v0.0.18
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 ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *BackupSource) DeepCopy() *BackupSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSource.
func (*BackupSource) DeepCopyInto ¶ added in v0.1.1
func (in *BackupSource) DeepCopyInto(out *BackupSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupSpec ¶
type BackupSpec struct {
Enabled bool `json:"enabled,omitempty"`
Image string `json:"image,omitempty"`
InitImage string `json:"initImage,omitempty"`
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
Schedule []BackupSchedule `json:"schedule,omitempty"`
ServiceAccountName string `json:"serviceAccountName,omitempty"`
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Storages map[string]*BackupStorageSpec `json:"storages,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
}
BackupSpec contains backup settings.
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 BackupStorageProviderSpec ¶ added in v0.0.18
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 ¶ added in v0.0.18
func (in *BackupStorageProviderSpec) DeepCopy() *BackupStorageProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageProviderSpec.
func (*BackupStorageProviderSpec) DeepCopyInto ¶ added in v0.0.18
func (in *BackupStorageProviderSpec) DeepCopyInto(out *BackupStorageProviderSpec)
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"`
Volume *VolumeSpec `json:"volumeSpec,omitempty"`
StorageProvider *BackupStorageProviderSpec `json:"storageProvider,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Affinity *corev1.Affinity `json:"affinity,omitempty"`
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
SchedulerName string `json:"schedulerName,omitempty"`
PriorityClassName string `json:"priorityClassName,omitempty"`
PodSecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`
RuntimeClassName *string `json:"runtimeClassName,omitempty"`
VerifyTLS *bool `json:"verifyTLS,omitempty"`
}
BackupStorageSpec represents set of settings to configure backup storage.
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
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 DBInstanceSpec ¶
type DBInstanceSpec struct {
CPU resource.Quantity `json:"cpu,omitempty"`
Memory resource.Quantity `json:"memory,omitempty"`
DiskSize resource.Quantity `json:"diskSize,omitempty"`
StorageClassName *string `json:"storageClassName,omitempty"`
}
DBInstanceSpec represents resource requests for database cluster.
func (*DBInstanceSpec) DeepCopy ¶
func (in *DBInstanceSpec) DeepCopy() *DBInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstanceSpec.
func (*DBInstanceSpec) DeepCopyInto ¶
func (in *DBInstanceSpec) DeepCopyInto(out *DBInstanceSpec)
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 DatabaseSpec `json:"spec,omitempty"`
Status DatabaseClusterStatus `json:"status,omitempty"`
}
DatabaseCluster is the Schema for the databases 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 DatabaseClusterList ¶
type DatabaseClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseCluster `json:"items"`
}
DatabaseClusterList contains a list of Database.
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 ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *DatabaseClusterRestore) DeepCopy() *DatabaseClusterRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestore.
func (*DatabaseClusterRestore) DeepCopyInto ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *DatabaseClusterRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterRestoreList ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *DatabaseClusterRestoreList) DeepCopy() *DatabaseClusterRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestoreList.
func (*DatabaseClusterRestoreList) DeepCopyInto ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *DatabaseClusterRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseClusterRestoreSpec ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *DatabaseClusterRestoreSpec) DeepCopy() *DatabaseClusterRestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestoreSpec.
func (*DatabaseClusterRestoreSpec) DeepCopyInto ¶ added in v0.1.1
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 ¶ added in v0.1.1
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 ¶ added in v0.1.1
func (in *DatabaseClusterRestoreStatus) DeepCopy() *DatabaseClusterRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseClusterRestoreStatus.
func (*DatabaseClusterRestoreStatus) DeepCopyInto ¶ added in v0.1.1
func (in *DatabaseClusterRestoreStatus) DeepCopyInto(out *DatabaseClusterRestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseClusterStatus ¶
type DatabaseClusterStatus struct {
Ready int32 `json:"ready,omitempty"`
Size int32 `json:"size,omitempty"`
State AppState `json:"status,omitempty"`
Host string `json:"host,omitempty"`
Message string `json:"message,omitempty"`
}
DatabaseClusterStatus defines the observed state of Database.
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 ¶ added in v0.0.18
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) DeepCopy ¶ added in v0.0.18
func (in *DatabaseEngine) DeepCopy() *DatabaseEngine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngine.
func (*DatabaseEngine) DeepCopyInto ¶ added in v0.0.18
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 ¶ added in v0.0.18
func (in *DatabaseEngine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseEngineList ¶ added in v0.0.18
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 ¶ added in v0.0.18
func (in *DatabaseEngineList) DeepCopy() *DatabaseEngineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngineList.
func (*DatabaseEngineList) DeepCopyInto ¶ added in v0.0.18
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 ¶ added in v0.0.18
func (in *DatabaseEngineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseEngineSpec ¶ added in v0.0.18
type DatabaseEngineSpec struct {
Type EngineType `json:"type"`
}
DatabaseEngineSpec is a spec for a database engine.
func (*DatabaseEngineSpec) DeepCopy ¶ added in v0.0.18
func (in *DatabaseEngineSpec) DeepCopy() *DatabaseEngineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngineSpec.
func (*DatabaseEngineSpec) DeepCopyInto ¶ added in v0.0.18
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 ¶ added in v0.0.18
type DatabaseEngineStatus struct {
State EngineState `json:"status,omitempty"`
Version string `json:"version,omitempty"`
}
DatabaseEngineStatus defines the observed state of DatabaseEngine.
func (*DatabaseEngineStatus) DeepCopy ¶ added in v0.0.18
func (in *DatabaseEngineStatus) DeepCopy() *DatabaseEngineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseEngineStatus.
func (*DatabaseEngineStatus) DeepCopyInto ¶ added in v0.0.18
func (in *DatabaseEngineStatus) DeepCopyInto(out *DatabaseEngineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseSpec ¶
type DatabaseSpec struct {
// Database type stands for supported databases by the PMM API
// Now it's pxc or psmdb types but we can extend it.
Database EngineType `json:"databaseType"`
// DatabaseVersion sets from version service and uses the recommended version
// by default.
DatabaseImage string `json:"databaseImage"`
// DatabaseConfig contains a config settings for the specified database.
DatabaseConfig string `json:"databaseConfig"`
// SecretsName contains name of a secrets file for a database cluster.
SecretsName string `json:"secretsName,omitempty"`
// Pause represents is a cluster paused or not.
Pause bool `json:"pause,omitempty"`
// ClusterSize is amount of nodes that required for the cluster.
// A database starts in cluster mode if clusterSize >= 3.
ClusterSize int32 `json:"clusterSize"`
// LoadBalancer contains a load balancer settings. For PXC it's haproxy
// or proxysql. For PSMDB it's mongos.
LoadBalancer LoadBalancerSpec `json:"loadBalancer,omitempty"`
// Monitoring contains a monitoring settings.
Monitoring MonitoringSpec `json:"monitoring,omitempty"`
// DBInstance represents resource requests for a database cluster.
DBInstance DBInstanceSpec `json:"dbInstance"`
// Backup contains backup settings.
Backup *BackupSpec `json:"backup,omitempty"`
}
DatabaseSpec defines the desired state of Database.
func (*DatabaseSpec) DeepCopy ¶
func (in *DatabaseSpec) DeepCopy() *DatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSpec.
func (*DatabaseSpec) DeepCopyInto ¶
func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EngineState ¶ added in v0.0.18
type EngineState string
EngineState represents state of engine in a k8s cluster.
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" )
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 LoadBalancerSpec ¶
type LoadBalancerSpec struct {
Type LoadBalancerType `json:"type,omitempty"`
ExposeType corev1.ServiceType `json:"exposeType,omitempty"`
Image string `json:"image,omitempty"`
Size int32 `json:"size,omitempty"`
Configuration string `json:"configuration,omitempty"`
LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
TrafficPolicy corev1.ServiceExternalTrafficPolicyType `json:"trafficPolicy,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}
LoadBalancerSpec contains a load balancer settings. For PXC it's haproxy or proxysql. For PSMDB it's mongos.
func (*LoadBalancerSpec) DeepCopy ¶
func (in *LoadBalancerSpec) DeepCopy() *LoadBalancerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSpec.
func (*LoadBalancerSpec) DeepCopyInto ¶
func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec)
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 and mongos for PSMDB clusters.
Once PG support will be added, it can be pg-bouncer or something else.
type MonitoringSpec ¶
type MonitoringSpec struct {
PMM *PMMSpec `json:"pmm,omitempty"`
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
RuntimeClassName *string `json:"runtimeClassName,omitempty"`
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`
}
MonitoringSpec contains monitoring settings.
func (*MonitoringSpec) DeepCopy ¶
func (in *MonitoringSpec) DeepCopy() *MonitoringSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringSpec.
func (*MonitoringSpec) DeepCopyInto ¶
func (in *MonitoringSpec) DeepCopyInto(out *MonitoringSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 RestoreState ¶ added in v0.1.1
type RestoreState string
RestoreState represents state of restoration.
type VolumeSpec ¶
type VolumeSpec struct {
// EmptyDir to use as data volume for mysql. EmptyDir represents a temporary
// directory that shares a pod's lifetime.
// +optional
EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"`
// HostPath to use as data volume for mysql. HostPath represents a
// pre-existing file or directory on the host machine that is directly
// exposed to the container.
// +optional
HostPath *corev1.HostPathVolumeSource `json:"hostPath,omitempty"`
// PersistentVolumeClaim to specify PVC spec for the volume for mysql data.
// It has the highest level of precedence, followed by HostPath and
// EmptyDir. And represents the PVC specification.
// +optional
PersistentVolumeClaim *corev1.PersistentVolumeClaimSpec `json:"persistentVolumeClaim,omitempty"`
}
VolumeSpec represents a specification to configure volume for underlying database.
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.