v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the database v1alpha1 API group +kubebuilder:object:generate=true +groupName=database.mmontes.io

Index

Constants

View Source
const (
	ConditionTypeReady        string = "Ready"
	ConditionTypeBootstrapped string = "Bootstrapped"
	ConditionTypeComplete     string = "Complete"
)
View Source
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

View Source
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

type BackupMariaDBStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

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

type DatabaseMariaDBStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

DatabaseMariaDBStatus defines the observed state of DatabaseMariaDB

func (*DatabaseMariaDBStatus) DeepCopy

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

func (in *Exporter) DeepCopy() *Exporter

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

func (*Exporter) DeepCopyInto

func (in *Exporter) DeepCopyInto(out *Exporter)

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

type GrantMariaDBStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

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

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

func (*Image) String

func (i *Image) String() string

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

func (in *MariaDB) DeepCopy() *MariaDB

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

func (*MariaDB) DeepCopyInto

func (in *MariaDB) DeepCopyInto(out *MariaDB)

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

func (*MariaDB) DeepCopyObject

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

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

func (*MariaDB) IsBootstrapped

func (m *MariaDB) IsBootstrapped() bool

func (*MariaDB) IsReady

func (m *MariaDB) IsReady() bool

func (*MariaDB) SetupWebhookWithManager

func (r *MariaDB) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MariaDB) ValidateCreate

func (r *MariaDB) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MariaDB) ValidateDelete

func (r *MariaDB) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MariaDB) ValidateUpdate

func (r *MariaDB) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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

type MariaDBStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

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

func (in *Metrics) DeepCopy() *Metrics

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

func (*Metrics) DeepCopyInto

func (in *Metrics) DeepCopyInto(out *Metrics)

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

type RestoreMariaDBStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

RestoreMariaDBStatus defines the observed state of RestoreMariaDB

func (*RestoreMariaDBStatus) DeepCopy

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

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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

func (*Storage) Validate added in v0.0.2

func (s *Storage) Validate() error

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

type UserMariaDBStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

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)

Jump to

Keyboard shortcuts

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