Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the database v1alpha1 API group +kubebuilder:object:generate=true +groupName=database.mmontes.io
Index ¶
- Constants
- Variables
- type BackupMariaDB
- func (in *BackupMariaDB) DeepCopy() *BackupMariaDB
- func (in *BackupMariaDB) DeepCopyInto(out *BackupMariaDB)
- func (in *BackupMariaDB) DeepCopyObject() runtime.Object
- func (m *BackupMariaDB) IsComplete() bool
- func (r *BackupMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BackupMariaDB) ValidateCreate() error
- func (r *BackupMariaDB) ValidateDelete() error
- func (r *BackupMariaDB) ValidateUpdate(old runtime.Object) error
- type BackupMariaDBList
- type BackupMariaDBRef
- type BackupMariaDBSpec
- type BackupMariaDBStatus
- type BackupSchedule
- type DatabaseMariaDB
- func (in *DatabaseMariaDB) DeepCopy() *DatabaseMariaDB
- func (in *DatabaseMariaDB) DeepCopyInto(out *DatabaseMariaDB)
- func (in *DatabaseMariaDB) DeepCopyObject() runtime.Object
- func (d *DatabaseMariaDB) IsBeingDeleted() bool
- func (m *DatabaseMariaDB) IsReady() bool
- func (m *DatabaseMariaDB) MariaDBRef() *MariaDBRef
- func (m *DatabaseMariaDB) Meta() metav1.ObjectMeta
- func (r *DatabaseMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *DatabaseMariaDB) ValidateCreate() error
- func (r *DatabaseMariaDB) ValidateDelete() error
- func (r *DatabaseMariaDB) ValidateUpdate(old runtime.Object) error
- type DatabaseMariaDBList
- type DatabaseMariaDBSpec
- type DatabaseMariaDBStatus
- type Exporter
- type GrantMariaDB
- func (in *GrantMariaDB) DeepCopy() *GrantMariaDB
- func (in *GrantMariaDB) DeepCopyInto(out *GrantMariaDB)
- func (in *GrantMariaDB) DeepCopyObject() runtime.Object
- func (g *GrantMariaDB) IsBeingDeleted() bool
- func (m *GrantMariaDB) IsReady() bool
- func (g *GrantMariaDB) MariaDBRef() *MariaDBRef
- func (g *GrantMariaDB) Meta() metav1.ObjectMeta
- func (r *GrantMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *GrantMariaDB) ValidateCreate() error
- func (r *GrantMariaDB) ValidateDelete() error
- func (r *GrantMariaDB) ValidateUpdate(old runtime.Object) error
- type GrantMariaDBList
- type GrantMariaDBSpec
- type GrantMariaDBStatus
- type Image
- type MariaDB
- func (in *MariaDB) DeepCopy() *MariaDB
- func (in *MariaDB) DeepCopyInto(out *MariaDB)
- func (in *MariaDB) DeepCopyObject() runtime.Object
- func (m *MariaDB) IsBootstrapped() bool
- func (m *MariaDB) IsReady() bool
- func (r *MariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MariaDB) ValidateCreate() error
- func (r *MariaDB) ValidateDelete() error
- func (r *MariaDB) ValidateUpdate(old runtime.Object) error
- type MariaDBList
- type MariaDBRef
- type MariaDBSpec
- type MariaDBStatus
- type Metrics
- type RestoreMariaDB
- func (in *RestoreMariaDB) DeepCopy() *RestoreMariaDB
- func (in *RestoreMariaDB) DeepCopyInto(out *RestoreMariaDB)
- func (in *RestoreMariaDB) DeepCopyObject() runtime.Object
- func (r *RestoreMariaDB) IsComplete() bool
- func (r *RestoreMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *RestoreMariaDB) ValidateCreate() error
- func (r *RestoreMariaDB) ValidateDelete() error
- func (r *RestoreMariaDB) ValidateUpdate(old runtime.Object) error
- type RestoreMariaDBList
- type RestoreMariaDBSpec
- type RestoreMariaDBStatus
- type ServiceMonitor
- type Storage
- type UserMariaDB
- func (in *UserMariaDB) DeepCopy() *UserMariaDB
- func (in *UserMariaDB) DeepCopyInto(out *UserMariaDB)
- func (in *UserMariaDB) DeepCopyObject() runtime.Object
- func (u *UserMariaDB) IsBeingDeleted() bool
- func (u *UserMariaDB) IsReady() bool
- func (u *UserMariaDB) MariaDBRef() *MariaDBRef
- func (u *UserMariaDB) Meta() metav1.ObjectMeta
- func (r *UserMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *UserMariaDB) ValidateCreate() error
- func (r *UserMariaDB) ValidateDelete() error
- func (r *UserMariaDB) ValidateUpdate(old runtime.Object) error
- type UserMariaDBList
- type UserMariaDBSpec
- type UserMariaDBStatus
Constants ¶
const ( ConditionTypeReady string = "Ready" ConditionTypeBootstrapped string = "Bootstrapped" ConditionTypeComplete string = "Complete" )
const ( ConditionReasonStatefulSetNotReady string = "StatefulSetNotReady" ConditionReasonStatefulSetReady string = "StatefulSetReady" ConditionReasonRestoreNotComplete string = "RestoreNotComplete" ConditionReasonRestoreComplete string = "RestoreComplete" ConditionReasonJobComplete string = "JobComplete" ConditionReasonJobSuspended string = "JobSuspended" ConditionReasonJobFailed string = "JobFailed" ConditionReasonJobRunning string = "JobRunning" ConditionReasonCronJobScheduled string = "CronJobScheduled" ConditionReasonCronJobFailed string = "CronJobScheduled" ConditionReasonCronJobRunning string = "CronJobRunning" ConditionReasonCronJobSuccess string = "CronJobSucess" ConditionReasonCreated string = "Created" ConditionReasonFailed string = "Failed" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "database.mmontes.io", 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 BackupMariaDB ¶
type BackupMariaDB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BackupMariaDBSpec `json:"spec,omitempty"`
Status BackupMariaDBStatus `json:"status,omitempty"`
}
BackupMariaDB is the Schema for the backupmariadbs API
func (*BackupMariaDB) DeepCopy ¶
func (in *BackupMariaDB) DeepCopy() *BackupMariaDB
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupMariaDB.
func (*BackupMariaDB) DeepCopyInto ¶
func (in *BackupMariaDB) DeepCopyInto(out *BackupMariaDB)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupMariaDB) DeepCopyObject ¶
func (in *BackupMariaDB) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackupMariaDB) IsComplete ¶
func (m *BackupMariaDB) IsComplete() bool
func (*BackupMariaDB) SetupWebhookWithManager ¶
func (r *BackupMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BackupMariaDB) ValidateCreate ¶
func (r *BackupMariaDB) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BackupMariaDB) ValidateDelete ¶
func (r *BackupMariaDB) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BackupMariaDB) ValidateUpdate ¶
func (r *BackupMariaDB) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BackupMariaDBList ¶
type BackupMariaDBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []BackupMariaDB `json:"items"`
}
BackupMariaDBList contains a list of BackupMariaDB
func (*BackupMariaDBList) DeepCopy ¶
func (in *BackupMariaDBList) DeepCopy() *BackupMariaDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupMariaDBList.
func (*BackupMariaDBList) DeepCopyInto ¶
func (in *BackupMariaDBList) DeepCopyInto(out *BackupMariaDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupMariaDBList) DeepCopyObject ¶
func (in *BackupMariaDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupMariaDBRef ¶ added in v0.0.2
type BackupMariaDBRef struct {
// +kubebuilder:validation:Required
corev1.LocalObjectReference `json:",inline"`
FileName *string `json:"fileName,omitempty"`
}
func (*BackupMariaDBRef) DeepCopy ¶ added in v0.0.2
func (in *BackupMariaDBRef) DeepCopy() *BackupMariaDBRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupMariaDBRef.
func (*BackupMariaDBRef) DeepCopyInto ¶ added in v0.0.2
func (in *BackupMariaDBRef) DeepCopyInto(out *BackupMariaDBRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupMariaDBSpec ¶
type BackupMariaDBSpec struct {
// +kubebuilder:validation:Required
MariaDBRef MariaDBRef `json:"mariaDbRef" webhook:"inmutable"`
// +kubebuilder:validation:Required
Storage Storage `json:"storage" webhook:"inmutable"`
Schedule *BackupSchedule `json:"schedule,omitempty"`
// +kubebuilder:default=5
BackoffLimit int32 `json:"backoffLimit,omitempty"`
// +kubebuilder:default=30
MaxRetentionDays int32 `json:"maxRetentionDays,omitempty" webhook:"inmutable"`
// +kubebuilder:default=false
Physical bool `json:"physical,omitempty" webhook:"inmutable"`
// +kubebuilder:default=OnFailure
RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty" webhook:"inmutable"`
// +kubebuilder:validation:Optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty" webhook:"inmutable"`
}
BackupMariaDBSpec defines the desired state of BackupMariaDB
func (*BackupMariaDBSpec) DeepCopy ¶
func (in *BackupMariaDBSpec) DeepCopy() *BackupMariaDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupMariaDBSpec.
func (*BackupMariaDBSpec) DeepCopyInto ¶
func (in *BackupMariaDBSpec) DeepCopyInto(out *BackupMariaDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupMariaDBStatus ¶
BackupMariaDBStatus defines the observed state of BackupMariaDB
func (*BackupMariaDBStatus) DeepCopy ¶
func (in *BackupMariaDBStatus) DeepCopy() *BackupMariaDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupMariaDBStatus.
func (*BackupMariaDBStatus) DeepCopyInto ¶
func (in *BackupMariaDBStatus) DeepCopyInto(out *BackupMariaDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupMariaDBStatus) SetCondition ¶
func (b *BackupMariaDBStatus) SetCondition(condition metav1.Condition)
type BackupSchedule ¶ added in v0.0.2
type BackupSchedule struct {
// +kubebuilder:validation:Required
Cron string `json:"cron"`
// +kubebuilder:default=false
Supend bool `json:"suspend,omitempty"`
}
func (*BackupSchedule) DeepCopy ¶ added in v0.0.2
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.2
func (in *BackupSchedule) DeepCopyInto(out *BackupSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseMariaDB ¶
type DatabaseMariaDB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseMariaDBSpec `json:"spec,omitempty"`
Status DatabaseMariaDBStatus `json:"status,omitempty"`
}
DatabaseMariaDB is the Schema for the databasemariadbs API
func (*DatabaseMariaDB) DeepCopy ¶
func (in *DatabaseMariaDB) DeepCopy() *DatabaseMariaDB
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseMariaDB.
func (*DatabaseMariaDB) DeepCopyInto ¶
func (in *DatabaseMariaDB) DeepCopyInto(out *DatabaseMariaDB)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseMariaDB) DeepCopyObject ¶
func (in *DatabaseMariaDB) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DatabaseMariaDB) IsBeingDeleted ¶
func (d *DatabaseMariaDB) IsBeingDeleted() bool
func (*DatabaseMariaDB) IsReady ¶
func (m *DatabaseMariaDB) IsReady() bool
func (*DatabaseMariaDB) MariaDBRef ¶
func (m *DatabaseMariaDB) MariaDBRef() *MariaDBRef
func (*DatabaseMariaDB) Meta ¶
func (m *DatabaseMariaDB) Meta() metav1.ObjectMeta
func (*DatabaseMariaDB) SetupWebhookWithManager ¶
func (r *DatabaseMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*DatabaseMariaDB) ValidateCreate ¶
func (r *DatabaseMariaDB) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*DatabaseMariaDB) ValidateDelete ¶
func (r *DatabaseMariaDB) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*DatabaseMariaDB) ValidateUpdate ¶
func (r *DatabaseMariaDB) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type DatabaseMariaDBList ¶
type DatabaseMariaDBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseMariaDB `json:"items"`
}
DatabaseMariaDBList contains a list of DatabaseMariaDB
func (*DatabaseMariaDBList) DeepCopy ¶
func (in *DatabaseMariaDBList) DeepCopy() *DatabaseMariaDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseMariaDBList.
func (*DatabaseMariaDBList) DeepCopyInto ¶
func (in *DatabaseMariaDBList) DeepCopyInto(out *DatabaseMariaDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseMariaDBList) DeepCopyObject ¶
func (in *DatabaseMariaDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseMariaDBSpec ¶
type DatabaseMariaDBSpec struct {
// +kubebuilder:validation:Required
MariaDBRef MariaDBRef `json:"mariaDbRef" webhook:"inmutable"`
// +kubebuilder:default=utf8
CharacterSet string `json:"characterSet,omitempty" webhook:"inmutable"`
// +kubebuilder:default=utf8_general_ci
Collate string `json:"collate,omitempty" webhook:"inmutable"`
}
DatabaseMariaDBSpec defines the desired state of DatabaseMariaDB
func (*DatabaseMariaDBSpec) DeepCopy ¶
func (in *DatabaseMariaDBSpec) DeepCopy() *DatabaseMariaDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseMariaDBSpec.
func (*DatabaseMariaDBSpec) DeepCopyInto ¶
func (in *DatabaseMariaDBSpec) DeepCopyInto(out *DatabaseMariaDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseMariaDBStatus ¶
DatabaseMariaDBStatus defines the observed state of DatabaseMariaDB
func (*DatabaseMariaDBStatus) DeepCopy ¶
func (in *DatabaseMariaDBStatus) DeepCopy() *DatabaseMariaDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseMariaDBStatus.
func (*DatabaseMariaDBStatus) DeepCopyInto ¶
func (in *DatabaseMariaDBStatus) DeepCopyInto(out *DatabaseMariaDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseMariaDBStatus) SetCondition ¶
func (d *DatabaseMariaDBStatus) SetCondition(condition metav1.Condition)
type Exporter ¶
type Exporter struct {
// +kubebuilder:validation:Required
Image Image `json:"image"`
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
}
func (*Exporter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exporter.
func (*Exporter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrantMariaDB ¶
type GrantMariaDB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GrantMariaDBSpec `json:"spec,omitempty"`
Status GrantMariaDBStatus `json:"status,omitempty"`
}
GrantMariaDB is the Schema for the grantmariadbs API
func (*GrantMariaDB) DeepCopy ¶
func (in *GrantMariaDB) DeepCopy() *GrantMariaDB
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrantMariaDB.
func (*GrantMariaDB) DeepCopyInto ¶
func (in *GrantMariaDB) DeepCopyInto(out *GrantMariaDB)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrantMariaDB) DeepCopyObject ¶
func (in *GrantMariaDB) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GrantMariaDB) IsBeingDeleted ¶
func (g *GrantMariaDB) IsBeingDeleted() bool
func (*GrantMariaDB) IsReady ¶
func (m *GrantMariaDB) IsReady() bool
func (*GrantMariaDB) MariaDBRef ¶
func (g *GrantMariaDB) MariaDBRef() *MariaDBRef
func (*GrantMariaDB) Meta ¶
func (g *GrantMariaDB) Meta() metav1.ObjectMeta
func (*GrantMariaDB) SetupWebhookWithManager ¶
func (r *GrantMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*GrantMariaDB) ValidateCreate ¶
func (r *GrantMariaDB) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*GrantMariaDB) ValidateDelete ¶
func (r *GrantMariaDB) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*GrantMariaDB) ValidateUpdate ¶
func (r *GrantMariaDB) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type GrantMariaDBList ¶
type GrantMariaDBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []GrantMariaDB `json:"items"`
}
GrantMariaDBList contains a list of GrantMariaDB
func (*GrantMariaDBList) DeepCopy ¶
func (in *GrantMariaDBList) DeepCopy() *GrantMariaDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrantMariaDBList.
func (*GrantMariaDBList) DeepCopyInto ¶
func (in *GrantMariaDBList) DeepCopyInto(out *GrantMariaDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrantMariaDBList) DeepCopyObject ¶
func (in *GrantMariaDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrantMariaDBSpec ¶
type GrantMariaDBSpec struct {
// +kubebuilder:validation:Required
MariaDBRef MariaDBRef `json:"mariaDbRef" webhook:"inmutable"`
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
Privileges []string `json:"privileges" webhook:"inmutable"`
// +kubebuilder:default=*
Database string `json:"database,omitempty" webhook:"inmutable"`
// +kubebuilder:default=*
Table string `json:"table,omitempty" webhook:"inmutable"`
// +kubebuilder:validation:Required
Username string `json:"username" webhook:"inmutable"`
// +kubebuilder:default=false
GrantOption bool `json:"grantOption,omitempty" webhook:"inmutable"`
}
GrantMariaDBSpec defines the desired state of GrantMariaDB
func (*GrantMariaDBSpec) DeepCopy ¶
func (in *GrantMariaDBSpec) DeepCopy() *GrantMariaDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrantMariaDBSpec.
func (*GrantMariaDBSpec) DeepCopyInto ¶
func (in *GrantMariaDBSpec) DeepCopyInto(out *GrantMariaDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrantMariaDBStatus ¶
GrantMariaDBStatus defines the observed state of GrantMariaDB
func (*GrantMariaDBStatus) DeepCopy ¶
func (in *GrantMariaDBStatus) DeepCopy() *GrantMariaDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrantMariaDBStatus.
func (*GrantMariaDBStatus) DeepCopyInto ¶
func (in *GrantMariaDBStatus) DeepCopyInto(out *GrantMariaDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrantMariaDBStatus) SetCondition ¶
func (g *GrantMariaDBStatus) SetCondition(condition metav1.Condition)
type Image ¶
type Image struct {
// +kubebuilder:validation:Required
Repository string `json:"repository"`
// +kubebuilder:default=latest
Tag string `json:"tag,omitempty"`
// +kubebuilder:default=IfNotPresent
PullPolicy corev1.PullPolicy `json:"pullPolicy,omitempty"`
}
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MariaDB ¶
type MariaDB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MariaDBSpec `json:"spec"`
Status MariaDBStatus `json:"status,omitempty"`
}
MariaDB is the Schema for the mariadbs API
func (*MariaDB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDB.
func (*MariaDB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MariaDB) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MariaDB) IsBootstrapped ¶
func (*MariaDB) SetupWebhookWithManager ¶
func (*MariaDB) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MariaDB) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type MariaDBList ¶
type MariaDBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MariaDB `json:"items"`
}
MariaDBList contains a list of MariaDB
func (*MariaDBList) DeepCopy ¶
func (in *MariaDBList) DeepCopy() *MariaDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBList.
func (*MariaDBList) DeepCopyInto ¶
func (in *MariaDBList) DeepCopyInto(out *MariaDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MariaDBList) DeepCopyObject ¶
func (in *MariaDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MariaDBRef ¶ added in v0.0.2
type MariaDBRef struct {
// +kubebuilder:validation:Required
corev1.LocalObjectReference `json:",inline"`
// +kubebuilder:default=true
WaitForIt bool `json:"waitForIt,omitempty"`
}
func (*MariaDBRef) DeepCopy ¶ added in v0.0.2
func (in *MariaDBRef) DeepCopy() *MariaDBRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBRef.
func (*MariaDBRef) DeepCopyInto ¶ added in v0.0.2
func (in *MariaDBRef) DeepCopyInto(out *MariaDBRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MariaDBSpec ¶
type MariaDBSpec struct {
// +kubebuilder:validation:Required
RootPasswordSecretKeyRef corev1.SecretKeySelector `json:"rootPasswordSecretKeyRef" webhook:"inmutable"`
Database *string `json:"database,omitempty" webhook:"inmutable"`
Username *string `json:"username,omitempty" webhook:"inmutable"`
PasswordSecretKeyRef *corev1.SecretKeySelector `json:"passwordSecretKeyRef,omitempty" webhook:"inmutable"`
// +kubebuilder:validation:Required
Image Image `json:"image" webhook:"inmutable"`
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" webhook:"inmutable"`
// +kubebuilder:default=3306
Port int32 `json:"port,omitempty"`
// +kubebuilder:validation:Required
VolumeClaimTemplate corev1.PersistentVolumeClaimSpec `json:"volumeClaimTemplate" webhook:"inmutable"`
BootstrapFromBackupRef *BackupMariaDBRef `json:"bootstrapFromBackupRef,omitempty" webhook:"inmutable"`
Metrics *Metrics `json:"metrics,omitempty"`
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
Env []v1.EnvVar `json:"env,omitempty"`
EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty"`
}
MariaDBSpec defines the desired state of MariaDB
func (*MariaDBSpec) DeepCopy ¶
func (in *MariaDBSpec) DeepCopy() *MariaDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBSpec.
func (*MariaDBSpec) DeepCopyInto ¶
func (in *MariaDBSpec) DeepCopyInto(out *MariaDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MariaDBStatus ¶
MariaDBStatus defines the observed state of MariaDB
func (*MariaDBStatus) DeepCopy ¶
func (in *MariaDBStatus) DeepCopy() *MariaDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBStatus.
func (*MariaDBStatus) DeepCopyInto ¶
func (in *MariaDBStatus) DeepCopyInto(out *MariaDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MariaDBStatus) SetCondition ¶
func (s *MariaDBStatus) SetCondition(condition metav1.Condition)
type Metrics ¶
type Metrics struct {
// +kubebuilder:validation:Required
Exporter Exporter `json:"exporter"`
// +kubebuilder:validation:Required
ServiceMonitor ServiceMonitor `json:"serviceMonitor"`
}
func (*Metrics) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metrics.
func (*Metrics) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreMariaDB ¶
type RestoreMariaDB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RestoreMariaDBSpec `json:"spec,omitempty"`
Status RestoreMariaDBStatus `json:"status,omitempty"`
}
RestoreMariaDB is the Schema for the restoremariadbs API
func (*RestoreMariaDB) DeepCopy ¶
func (in *RestoreMariaDB) DeepCopy() *RestoreMariaDB
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreMariaDB.
func (*RestoreMariaDB) DeepCopyInto ¶
func (in *RestoreMariaDB) DeepCopyInto(out *RestoreMariaDB)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RestoreMariaDB) DeepCopyObject ¶
func (in *RestoreMariaDB) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RestoreMariaDB) IsComplete ¶
func (r *RestoreMariaDB) IsComplete() bool
func (*RestoreMariaDB) SetupWebhookWithManager ¶
func (r *RestoreMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*RestoreMariaDB) ValidateCreate ¶
func (r *RestoreMariaDB) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*RestoreMariaDB) ValidateDelete ¶
func (r *RestoreMariaDB) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*RestoreMariaDB) ValidateUpdate ¶
func (r *RestoreMariaDB) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type RestoreMariaDBList ¶
type RestoreMariaDBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []RestoreMariaDB `json:"items"`
}
RestoreMariaDBList contains a list of RestoreMariaDB
func (*RestoreMariaDBList) DeepCopy ¶
func (in *RestoreMariaDBList) DeepCopy() *RestoreMariaDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreMariaDBList.
func (*RestoreMariaDBList) DeepCopyInto ¶
func (in *RestoreMariaDBList) DeepCopyInto(out *RestoreMariaDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RestoreMariaDBList) DeepCopyObject ¶
func (in *RestoreMariaDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RestoreMariaDBSpec ¶
type RestoreMariaDBSpec struct {
// +kubebuilder:validation:Required
MariaDBRef MariaDBRef `json:"mariaDbRef" webhook:"inmutable"`
// +kubebuilder:validation:Required
BackupRef BackupMariaDBRef `json:"backupRef" webhook:"inmutable"`
// +kubebuilder:default=5
BackoffLimit int32 `json:"backoffLimit,omitempty"`
// +kubebuilder:default=OnFailure
RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty" webhook:"inmutable"`
Resources *corev1.ResourceRequirements `json:"resources,omitempty" webhook:"inmutable"`
}
RestoreMariaDBSpec defines the desired state of RestoreMariaDB
func (*RestoreMariaDBSpec) DeepCopy ¶
func (in *RestoreMariaDBSpec) DeepCopy() *RestoreMariaDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreMariaDBSpec.
func (*RestoreMariaDBSpec) DeepCopyInto ¶
func (in *RestoreMariaDBSpec) DeepCopyInto(out *RestoreMariaDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreMariaDBStatus ¶
RestoreMariaDBStatus defines the observed state of RestoreMariaDB
func (*RestoreMariaDBStatus) DeepCopy ¶
func (in *RestoreMariaDBStatus) DeepCopy() *RestoreMariaDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreMariaDBStatus.
func (*RestoreMariaDBStatus) DeepCopyInto ¶
func (in *RestoreMariaDBStatus) DeepCopyInto(out *RestoreMariaDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RestoreMariaDBStatus) SetCondition ¶
func (r *RestoreMariaDBStatus) SetCondition(condition metav1.Condition)
type ServiceMonitor ¶
type ServiceMonitor struct {
// +kubebuilder:validation:Required
PrometheusRelease string `json:"prometheusRelease"`
// +kubebuilder:default='10s'
Interval string `json:"interval,omitempty"`
// +kubebuilder:default='10s'
ScrapeTimeout string `json:"scrapeTimeout,omitempty"`
}
func (*ServiceMonitor) DeepCopy ¶
func (in *ServiceMonitor) DeepCopy() *ServiceMonitor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitor.
func (*ServiceMonitor) DeepCopyInto ¶
func (in *ServiceMonitor) DeepCopyInto(out *ServiceMonitor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Storage ¶
type Storage struct {
Volume *corev1.VolumeSource `json:"volume,omitempty"`
PersistentVolumeClaim *corev1.PersistentVolumeClaimSpec `json:"persistentVolumeClaim,omitempty"`
}
func (*Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserMariaDB ¶
type UserMariaDB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UserMariaDBSpec `json:"spec,omitempty"`
Status UserMariaDBStatus `json:"status,omitempty"`
}
UserMariaDB is the Schema for the usermariadbs API
func (*UserMariaDB) DeepCopy ¶
func (in *UserMariaDB) DeepCopy() *UserMariaDB
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserMariaDB.
func (*UserMariaDB) DeepCopyInto ¶
func (in *UserMariaDB) DeepCopyInto(out *UserMariaDB)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserMariaDB) DeepCopyObject ¶
func (in *UserMariaDB) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*UserMariaDB) IsBeingDeleted ¶
func (u *UserMariaDB) IsBeingDeleted() bool
func (*UserMariaDB) IsReady ¶
func (u *UserMariaDB) IsReady() bool
func (*UserMariaDB) MariaDBRef ¶
func (u *UserMariaDB) MariaDBRef() *MariaDBRef
func (*UserMariaDB) Meta ¶
func (u *UserMariaDB) Meta() metav1.ObjectMeta
func (*UserMariaDB) SetupWebhookWithManager ¶
func (r *UserMariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*UserMariaDB) ValidateCreate ¶
func (r *UserMariaDB) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*UserMariaDB) ValidateDelete ¶
func (r *UserMariaDB) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*UserMariaDB) ValidateUpdate ¶
func (r *UserMariaDB) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type UserMariaDBList ¶
type UserMariaDBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UserMariaDB `json:"items"`
}
UserMariaDBList contains a list of UserMariaDB
func (*UserMariaDBList) DeepCopy ¶
func (in *UserMariaDBList) DeepCopy() *UserMariaDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserMariaDBList.
func (*UserMariaDBList) DeepCopyInto ¶
func (in *UserMariaDBList) DeepCopyInto(out *UserMariaDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserMariaDBList) DeepCopyObject ¶
func (in *UserMariaDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserMariaDBSpec ¶
type UserMariaDBSpec struct {
// +kubebuilder:validation:Required
MariaDBRef MariaDBRef `json:"mariaDbRef" webhook:"inmutable"`
// +kubebuilder:validation:Required
PasswordSecretKeyRef corev1.SecretKeySelector `json:"passwordSecretKeyRef" webhook:"inmutable"`
// +kubebuilder:default=10
MaxUserConnections int32 `json:"maxUserConnections,omitempty" webhook:"inmutable"`
}
UserMariaDBSpec defines the desired state of UserMariaDB
func (*UserMariaDBSpec) DeepCopy ¶
func (in *UserMariaDBSpec) DeepCopy() *UserMariaDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserMariaDBSpec.
func (*UserMariaDBSpec) DeepCopyInto ¶
func (in *UserMariaDBSpec) DeepCopyInto(out *UserMariaDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserMariaDBStatus ¶
UserMariaDBStatus defines the observed state of UserMariaDB
func (*UserMariaDBStatus) DeepCopy ¶
func (in *UserMariaDBStatus) DeepCopy() *UserMariaDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserMariaDBStatus.
func (*UserMariaDBStatus) DeepCopyInto ¶
func (in *UserMariaDBStatus) DeepCopyInto(out *UserMariaDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserMariaDBStatus) SetCondition ¶
func (u *UserMariaDBStatus) SetCondition(condition metav1.Condition)
Source Files
¶
- backupmariadb_types.go
- backupmariadb_webhook.go
- common_types.go
- condition_types.go
- databasemariadb_types.go
- databasemariadb_webhook.go
- grantmariadb_types.go
- grantmariadb_webhook.go
- groupversion_info.go
- mariadb_types.go
- mariadb_webhook.go
- restoremariadb_types.go
- restoremariadb_webhook.go
- usermariadb_types.go
- usermariadb_webhook.go
- zz_generated.deepcopy.go