v1alpha1

package
v0.0.0-...-a735c6b Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// BackupFailed the associated backup has failed
	BackupFailed = "Failed"
	// BackupRunning the associated backup is running
	BackupRunning = "Running"
	// BackupStoreAccessError the associated store could not be accessed
	BackupStoreAccessError = "StoreAccessError"
	// BackupStoreNotReady the associated instance is not yet ready
	BackupStoreNotReady = "StoreNotReady"
	// BackupMissingVariable some variables are missing
	BackupMissingVariable = "StoreMissingVariable"
	// BackupInstanceAccessError the associated instance could not be accessed
	BackupInstanceAccessError = "InstanceAccessError"
	// BackupInstanceNotReady the associated instance is not yet ready
	BackupInstanceNotReady = "InstanceNotReady"
	// BackupAgentNotFound the agent could not be found
	BackupAgentNotFound = "AgentNotFound"
	// BackupAgentFailed a request to the agent failed
	BackupAgentFailed = "AgentFailed"
	// BackupNotImplemented grant creation has not been implemented
	BackupNotImplemented = "NotImplemented"
	// BackupSucceeded grant creation has succeeded
	BackupSucceeded = "Succeeded"
)
View Source
const (
	// ChatPending did not attempt to connect yet or did not get result
	ChatPending = "Pending"
	// ChatSlackConnectionError could not connect to Slack
	ChatSlackConnectionError = "SlackConnectionError"
	// ChatSlackChannelError could not connect to the Slack Channel
	ChatSlackChannelError = "SlackChannelError"
	// ChatSucceeded could connect to Slack and send a message
	ChatSucceeded = "Succeeded"
)
View Source
const (
	// DatabaseInstanceAccessError the associated instance could not be accessed
	DatabaseInstanceAccessError = "InstanceAccessError"
	// DatabaseInstanceNotReady the associated instance is not yet ready
	DatabaseInstanceNotReady = "InstanceNotReady"
	// DatabaseAgentNotFound the agent could not be found
	DatabaseAgentNotFound = "AgentNotFound"
	// DatabaseAgentFailed a request to the agent failed
	DatabaseAgentFailed = "AgentFailed"
	// DatabaseSucceeded database creation has succeeded
	DatabaseSucceeded = "Succeeded"
)
View Source
const (
	// GrantUserDatabaseMismatch the associated user and database do not match the same instance
	GrantUserDatabaseMismatch = "UserDatabaseMismatch"
	// GrantUserAccessError the associated user could not be accessed
	GrantUserAccessError = "UserAccessError"
	// GrantUserNotReady the associated user is not yet ready
	GrantUserNotReady = "UserNotReady"
	// GrantDatabaseAccessError the associated database could not be accessed
	GrantDatabaseAccessError = "DatabaseAccessError"
	// GrantDatabaseNotReady the associated database is not yet ready
	GrantDatabaseNotReady = "DatabaseNotReady"
	// GrantInstanceAccessError the associated instance could not be accessed
	GrantInstanceAccessError = "InstanceAccessError"
	// GrantInstanceNotReady the associated instance is not yet ready
	GrantInstanceNotReady = "InstanceNotReady"
	// GrantAgentNotFound the agent could not be found
	GrantAgentNotFound = "AgentNotFound"
	// GrantAgentFailed a request to the agent failed
	GrantAgentFailed = "AgentFailed"
	// GrantNotImplemented grant creation has not been implemented
	GrantNotImplemented = "NotImplemented"
	// GrantSucceeded grant creation has succeeded
	GrantSucceeded = "Succeeded"
)
View Source
const (
	// InstanceInitializing instance creation has been requested
	InstanceInitializing = "Initializing"
	// InstanceExporterSecretInaccessible the secret for the exporter could not be accessed
	InstanceExporterSecretInaccessible = "ExporterSecretInaccessible"
	// InstanceExporterSecretCreated the secret for the exporter has been created
	InstanceExporterSecretCreated = "ExporterSecretCreated"
	// InstanceExporterSecretDeleted the secret for the exporter has been deleted
	InstanceExporterSecretDeleted = "ExporterSecretDeleted"
	// InstanceExporterSecretFailed the secret for the exporter could not be created
	InstanceExporterSecretFailed = "ExporterSecretFailed"
	// InstanceStoreInaccessible the store cannot be accessed
	InstanceStoreInaccessible = "StoreInaccessible"
	// InstanceStoreNotReady the store is not ready
	InstanceStoreNotReady = "StoreNotReady"
	// InstanceStatefulSetInaccessible the statefulset cannot be accessed
	InstanceStatefulSetInaccessible = "StatefulSetInaccessible"
	// InstanceStatefulSetUpdated the statefulset has been updated
	InstanceStatefulSetUpdated = "StatefulSetUpdated"
	// InstanceStatefulSetFailed the statefulset could not be created
	InstanceStatefulSetFailed = "StatefulSetFailed"
	// InstanceStatefulSetCreated the statefulset has been successfully created
	InstanceStatefulSetCreated = "StatefulSetCreated"
	// InstanceStatefulSetWaiting the statefulset is not yet reported as ready
	InstanceStatefulSetWaiting = "StatefulSetWaitingForReady"
	// InstanceStatefulSetReady the statefulset is ready
	InstanceStatefulSetReady = "StatefulSetReady"
)
View Source
const (
	// OperationPending did not attempt to run the operation yet
	OperationPending = "Pending"
	// OperationRequested has requested the operation to start
	OperationRequested = "Requested"
	// OperationError failed running the operation
	OperationError = "OperationError"
	// OperationSucceeded could successfully generate the operation
	OperationSucceeded = "Succeeded"
)
View Source
const (
	// OperationWaitingForMaintenanceWindow operation is waiting for maintenance window
	OperationWaitingForMaintenanceWindow = "WaitingMaintenanceWindow"
	// OperationRunning the operation is currently running
	OperationRunning = "Running"
	// OperationExecutedWithFailure the operation is executed and it has failed
	OperationExecutedWithFailure = "ExecutedWithFailure"
	// OperationExecutedWithSuccess the operation is executed with success
	OperationExecutedWithSuccess = "ExecutedWithSuccess"
)
View Source
const (
	// StoreCheckRequested specifies a state check request
	StoreCheckRequested = "CheckRequested"

	// StoreCheckSucceeded shows the last state check has passed
	StoreCheckSucceeded = "CheckSucceeded"

	// StoreCheckFailed shows the last state check has failed
	StoreCheckFailed = "CheckFailed"
)
View Source
const (
	// UserPasswordError the password was not defined properly
	UserPasswordError = "PasswordError"
	// UserPasswordAccessError the password could not be access
	UserPasswordAccessError = "PasswordAccessError"
	// UserInstanceAccessError the associated instance could not be accessed
	UserInstanceAccessError = "InstanceAccessError"
	// UserInstanceNotReady the associated instance is not yet ready
	UserInstanceNotReady = "InstanceNotReady"
	// UserAgentNotFound the agent could not be found
	UserAgentNotFound = "AgentNotFound"
	// UserAgentFailed a request to the agent failed
	UserAgentFailed = "AgentFailed"
	// UserSucceeded user creation has succeeded
	UserSucceeded = "Succeeded"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "mysql.blaqkube.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 AccessMode

type AccessMode string

AccessMode is an Enum type to reference different storages

const (
	// AccessReadWrite Read and write access for a user on a database
	AccessReadWrite AccessMode = "readWrite"
	// AccessReadOnly Read-only access for a user on a database
	AccessReadOnly AccessMode = "readOnly"
)

type Backend

type Backend string

Backend is an Enum type to reference different storages

const (
	// BackendS3 for s3
	BackendS3 Backend = "s3"
	// BackendBlackhole for blackhole. A backend used to perform tests
	BackendBlackhole Backend = "blackhole"
	// BackendGCP for GCP. A backend used to perform tests
	BackendGCP Backend = "gcp"
)

type Backup

type Backup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BackupSpec   `json:"spec,omitempty"`
	Status BackupStatus `json:"status,omitempty"`
}

Backup is the Schema for the backups API

func (*Backup) DeepCopy

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

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

func (*Backup) DeepCopyObject

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

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

type BackupDetails

type BackupDetails struct {
	// Internal Identifier
	Identifier string `json:"identifier,omitempty"`
	// Bucket
	Bucket string `json:"bucket,omitempty"`
	// Location in bucket
	Location string `json:"location,omitempty"`
	// Start Time
	StartTime *metav1.Time `json:"backupTime,omitempty"`
	// End Time
	EndTime *metav1.Time `json:"endTime,omitempty"`
}

BackupDetails defines the Backup Location and StartupTime

func (*BackupDetails) DeepCopy

func (in *BackupDetails) DeepCopy() *BackupDetails

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

func (*BackupDetails) DeepCopyInto

func (in *BackupDetails) DeepCopyInto(out *BackupDetails)

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

type BackupList

type BackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Backup `json:"items"`
}

BackupList contains a list of Backup

func (*BackupList) DeepCopy

func (in *BackupList) DeepCopy() *BackupList

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

func (*BackupList) DeepCopyInto

func (in *BackupList) DeepCopyInto(out *BackupList)

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

func (*BackupList) DeepCopyObject

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

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

type BackupScheduleSpec

type BackupScheduleSpec struct {
	// The backup store to use for backups
	Store string `json:"store,omitempty"`

	// The backup schedule to use for backups
	Schedule string `json:"schedule,omitempty"`
}

BackupScheduleSpec defines the backup schedule properties

func (*BackupScheduleSpec) DeepCopy

func (in *BackupScheduleSpec) DeepCopy() *BackupScheduleSpec

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

func (*BackupScheduleSpec) DeepCopyInto

func (in *BackupScheduleSpec) DeepCopyInto(out *BackupScheduleSpec)

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

type BackupSpec

type BackupSpec struct {
	// The store to use to perform the backup.
	Store string `json:"store"`
	// Instance to backup.
	Instance string `json:"instance"`
}

BackupSpec defines the desired state of Backup

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 BackupStatus

type BackupStatus struct {
	// Defines the details for the backup
	Details *BackupDetails `json:"details,omitempty"`
	// Defines if the store can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines if the store current Reason
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Message string `json:"message,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Conditions []metav1.Condition `json:"Conditions,omitempty"`
}

BackupStatus defines the observed state of Backup

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

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

type Chat

type Chat struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ChatSpec   `json:"spec,omitempty"`
	Status ChatStatus `json:"status,omitempty"`
}

Chat is the Schema for the chats API

func (*Chat) DeepCopy

func (in *Chat) DeepCopy() *Chat

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

func (*Chat) DeepCopyInto

func (in *Chat) DeepCopyInto(out *Chat)

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

func (*Chat) DeepCopyObject

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

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

type ChatList

type ChatList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Chat `json:"items"`
}

ChatList contains a list of Chat

func (*ChatList) DeepCopy

func (in *ChatList) DeepCopy() *ChatList

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

func (*ChatList) DeepCopyInto

func (in *ChatList) DeepCopyInto(out *ChatList)

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

func (*ChatList) DeepCopyObject

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

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

type ChatSpec

type ChatSpec struct {

	// Slack provides a slack configuration
	Slack SlackSpec `json:"slack,omitempty"`
}

ChatSpec defines the desired state of Chat

func (*ChatSpec) DeepCopy

func (in *ChatSpec) DeepCopy() *ChatSpec

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

func (*ChatSpec) DeepCopyInto

func (in *ChatSpec) DeepCopyInto(out *ChatSpec)

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

type ChatStatus

type ChatStatus struct {
	// Defines if slack can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines the Reason behind Slack can be considered as ready or not
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about why the chant is in
	// this condition.
	Message string `json:"message,omitempty"`
	// Allow to understand the history of conditions
	Conditions []metav1.Condition `json:"Conditions,omitempty"`
}

ChatStatus defines the observed state of Chat

func (*ChatStatus) DeepCopy

func (in *ChatStatus) DeepCopy() *ChatStatus

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

func (*ChatStatus) DeepCopyInto

func (in *ChatStatus) DeepCopyInto(out *ChatStatus)

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

type Database

type Database struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DatabaseSpec   `json:"spec,omitempty"`
	Status DatabaseStatus `json:"status,omitempty"`
}

Database is the Schema for the databases API

func (*Database) DeepCopy

func (in *Database) DeepCopy() *Database

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

func (*Database) DeepCopyInto

func (in *Database) DeepCopyInto(out *Database)

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

func (*Database) DeepCopyObject

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

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

type DatabaseList

type DatabaseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Database `json:"items"`
}

DatabaseList contains a list of Database

func (*DatabaseList) DeepCopy

func (in *DatabaseList) DeepCopy() *DatabaseList

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

func (*DatabaseList) DeepCopyInto

func (in *DatabaseList) DeepCopyInto(out *DatabaseList)

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

func (*DatabaseList) DeepCopyObject

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

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

type DatabaseSpec

type DatabaseSpec struct {
	Name     string `json:"name"`
	Instance string `json:"instance"`
}

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 DatabaseStatus

type DatabaseStatus struct {
	// Defines if the store can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines if the store current Reason
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Message string `json:"message,omitempty"`
	// Allow to understand the history of conditions
	Conditions []metav1.Condition `json:"Conditions,omitempty"`
}

DatabaseStatus defines the observed state of Database

func (*DatabaseStatus) DeepCopy

func (in *DatabaseStatus) DeepCopy() *DatabaseStatus

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

func (*DatabaseStatus) DeepCopyInto

func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)

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

type EnvVar

type EnvVar struct {
	// Name of the environment variable. Must be a C_IDENTIFIER.
	Name string `json:"name"`
	// Variable's value.
	// +optional
	Value string `json:"value,omitempty"`
	// Source for the environment variable's value. Cannot be used if value is
	// not empty.
	// +optional
	ValueFrom *EnvVarSource `json:"valueFrom,omitempty"`
}

EnvVar represents an environment variable present in a store.

func (*EnvVar) DeepCopy

func (in *EnvVar) DeepCopy() *EnvVar

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

func (*EnvVar) DeepCopyInto

func (in *EnvVar) DeepCopyInto(out *EnvVar)

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

type EnvVarSource

type EnvVarSource struct {
	// Selects a key of a ConfigMap.
	// +optional
	ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
	// Selects a key of a secret in the pod's namespace
	// +optional
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

EnvVarSource represents a source for the value of an EnvVar.

func (*EnvVarSource) DeepCopy

func (in *EnvVarSource) DeepCopy() *EnvVarSource

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

func (*EnvVarSource) DeepCopyInto

func (in *EnvVarSource) DeepCopyInto(out *EnvVarSource)

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

type Grant

type Grant struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GrantSpec   `json:"spec,omitempty"`
	Status GrantStatus `json:"status,omitempty"`
}

Grant is the Schema for the grants API

func (*Grant) DeepCopy

func (in *Grant) DeepCopy() *Grant

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

func (*Grant) DeepCopyInto

func (in *Grant) DeepCopyInto(out *Grant)

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

func (*Grant) DeepCopyObject

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

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

type GrantList

type GrantList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Grant `json:"items"`
}

GrantList contains a list of Grant

func (*GrantList) DeepCopy

func (in *GrantList) DeepCopy() *GrantList

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

func (*GrantList) DeepCopyInto

func (in *GrantList) DeepCopyInto(out *GrantList)

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

func (*GrantList) DeepCopyObject

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

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

type GrantSpec

type GrantSpec struct {

	// Defines the granted user
	User string `json:"user"`
	// Defines the granted database
	Database string `json:"database"`
	// Defines the type of access for the user and database
	// +kubebuilder:validation:Enum=readWrite;readOnly
	AccessMode string `json:"accessMode"`
}

GrantSpec defines the desired state of Grant

func (*GrantSpec) DeepCopy

func (in *GrantSpec) DeepCopy() *GrantSpec

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

func (*GrantSpec) DeepCopyInto

func (in *GrantSpec) DeepCopyInto(out *GrantSpec)

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

type GrantStatus

type GrantStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// Defines if the store can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines if the store current Reason
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Message string `json:"message,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Conditions []metav1.Condition `json:"Conditions,omitempty"`
}

GrantStatus defines the observed state of Grant

func (*GrantStatus) DeepCopy

func (in *GrantStatus) DeepCopy() *GrantStatus

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

func (*GrantStatus) DeepCopyInto

func (in *GrantStatus) DeepCopyInto(out *GrantStatus)

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

type Instance

type Instance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InstanceSpec   `json:"spec,omitempty"`
	Status InstanceStatus `json:"status,omitempty"`
}

Instance is the Schema for the instances API

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

func (*Instance) DeepCopyObject

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

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

type InstanceList

type InstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Instance `json:"items"`
}

InstanceList contains a list of Instance

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

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

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

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

func (*InstanceList) DeepCopyObject

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

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

type InstanceSpec

type InstanceSpec struct {
	// Restore when starting from an existing configuration
	Restore RestoreSpec `json:"restore,omitempty"`

	// Defines the backup schedules
	BackupSchedule BackupScheduleSpec `json:"backupSchedule,omitempty"`

	// Database is the default database name for the instance
	Database string `json:"database,omitempty"`

	// Defines the backup schedules
	MaintenanceSchedule MaintenanceScheduleSpec `json:"maintenanceSchedule,omitempty"`
}

InstanceSpec defines the desired state of Instance

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

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

type InstanceStatus

type InstanceStatus struct {
	// StatefulSet keeps track of the instance Statefulset
	StatefulSet corev1.ObjectReference `json:"statefulset,omitempty"`
	// ExporterSecret keeps track of the secret used for the exporter
	ExporterSecret corev1.ObjectReference `json:"exporter,omitempty"`
	// Defines if the instance is ready
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines if the store current Reason
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Message string `json:"message,omitempty"`
	// Defines if the database is currently in Maintenance Mode
	MaintenanceMode bool `json:"maintenanceMode"`
	// Conditions provides informations about the the last conditions
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	// Schedules provides information about the current running schedules, including backups and maintenance
	Schedules ScheduleStatus `json:"schedules,omitempty"`
}

InstanceStatus defines the observed state of Instance

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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

type MaintenanceScheduleSpec

type MaintenanceScheduleSpec struct {

	// The maintenance schedule
	Schedule string `json:"schedule,omitempty"`

	// The maintenance schedule in minutes
	Duration int `json:"duration,omitempty"`
}

MaintenanceScheduleSpec defines the backup schedule properties

func (*MaintenanceScheduleSpec) DeepCopy

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

func (*MaintenanceScheduleSpec) DeepCopyInto

func (in *MaintenanceScheduleSpec) DeepCopyInto(out *MaintenanceScheduleSpec)

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

type Operation

type Operation struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   OperationSpec   `json:"spec,omitempty"`
	Status OperationStatus `json:"status,omitempty"`
}

Operation is the Schema for the operations API

func (*Operation) DeepCopy

func (in *Operation) DeepCopy() *Operation

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

func (*Operation) DeepCopyInto

func (in *Operation) DeepCopyInto(out *Operation)

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

func (*Operation) DeepCopyObject

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

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

type OperationList

type OperationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Operation `json:"items"`
}

OperationList contains a list of Operation

func (*OperationList) DeepCopy

func (in *OperationList) DeepCopy() *OperationList

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

func (*OperationList) DeepCopyInto

func (in *OperationList) DeepCopyInto(out *OperationList)

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

func (*OperationList) DeepCopyObject

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

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

type OperationMode

type OperationMode string

OperationMode is an Enum type to reference the mode of operation

const (
	// OperationModeImmediate defines operations that should apply immediately
	OperationModeImmediate OperationMode = "immediate"
	// OperationModeMaintenance defines operations that should apply on the next maintenance window
	OperationModeMaintenance OperationMode = "maintenance"
)

type OperationSpec

type OperationSpec struct {

	// Mode defines how an operation is applied, it could be immediate or wait for the next maintenance window on the instance
	// +kubebuilder:validation:Enum=maintenance;immediate
	// +kubebuilder:default:="maintenance"
	Mode OperationMode `json:"mode,omitempty"`

	// Type defines the operation type. For now, only noop is supported
	// +kubebuilder:validation:Enum=noop
	// +kubebuilder:default:="noop"
	Type OperationType `json:"type,omitempty"`

	// Defines the instance the operation applies to
	Instance string `json:"instance,omitempty"`
}

OperationSpec defines the desired state of Operation

func (*OperationSpec) DeepCopy

func (in *OperationSpec) DeepCopy() *OperationSpec

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

func (*OperationSpec) DeepCopyInto

func (in *OperationSpec) DeepCopyInto(out *OperationSpec)

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

type OperationStatus

type OperationStatus struct {
	// Defines if the operation can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines the current Reason for the operation
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the operation and the
	// associated condition.
	Message string `json:"message,omitempty"`
	// Conditions provides informations about the the last conditions
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

OperationStatus defines the observed state of Operation

func (*OperationStatus) DeepCopy

func (in *OperationStatus) DeepCopy() *OperationStatus

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

func (*OperationStatus) DeepCopyInto

func (in *OperationStatus) DeepCopyInto(out *OperationStatus)

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

type OperationType

type OperationType string

OperationType is an Enum type to reference the type of operation

const (
	// OperationTypeRestart a restart operation
	OperationTypeRestart OperationType = "restart"
	// OperationTypeNoOp a do nothing operation
	OperationTypeNoop OperationType = "noop"
)

type PasswordSource

type PasswordSource struct {
	// Selects a key of a ConfigMap.
	// +optional
	ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
	// Selects a key of a secret in the pod's namespace
	// +optional
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

PasswordSource represents a source for the value of a Password.

func (*PasswordSource) DeepCopy

func (in *PasswordSource) DeepCopy() *PasswordSource

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

func (*PasswordSource) DeepCopyInto

func (in *PasswordSource) DeepCopyInto(out *PasswordSource)

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

type RestoreSpec

type RestoreSpec struct {
	Store string `json:"store,omitempty"`

	Location string `json:"location,omitempty"`
}

RestoreSpec defines the backup location when create a instance with a restore

func (*RestoreSpec) DeepCopy

func (in *RestoreSpec) DeepCopy() *RestoreSpec

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

func (*RestoreSpec) DeepCopyInto

func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)

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

type ScheduleEntry

type ScheduleEntry struct {
	// The backup schedule that last applied
	Schedule string `json:"schedule,omitempty"`
	// The BackupJob ID in the Scheduler
	EntryID int `json:"entryID"`
}

ScheduleEntry defines schedule properties

func (*ScheduleEntry) DeepCopy

func (in *ScheduleEntry) DeepCopy() *ScheduleEntry

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

func (*ScheduleEntry) DeepCopyInto

func (in *ScheduleEntry) DeepCopyInto(out *ScheduleEntry)

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

type ScheduleStatus

type ScheduleStatus struct {
	// The Scheduler incarnation managed by the operator
	// +kubebuilder:default:="00000000-0000-0000-0000-000000000000"
	Incarnation string `json:"incarnation,omitempty"`
	// Properties for the backup schedule
	Backup ScheduleEntry `json:"backup,omitempty"`

	// Properties for the maintenance schedule
	Maintenance ScheduleEntry `json:"maintenance,omitempty"`

	// Properties to turn off the maintenance mode
	MaintenanceOff ScheduleEntry `json:"maintenanceOff,omitempty"`

	// When the maintenance mode should be turned off
	MaintenanceEndTime *metav1.Time `json:"maintenanceEndTime,omitempty"`
}

ScheduleStatus defines the schedule properties

func (*ScheduleStatus) DeepCopy

func (in *ScheduleStatus) DeepCopy() *ScheduleStatus

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

func (*ScheduleStatus) DeepCopyInto

func (in *ScheduleStatus) DeepCopyInto(out *ScheduleStatus)

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

type SlackSpec

type SlackSpec struct {

	// Token's value
	// +optional
	Token string `json:"token,omitempty"`
	// Source for the Token's value. Cannot be used if Token is
	// not empty.
	// +optional
	TokenFrom *TokenSource `json:"tokenFrom,omitempty"`

	// Channel is the name of the channel to use
	Channel string `json:"channel,omitempty"`
}

SlackSpec defines the properties associated with Slack

func (*SlackSpec) DeepCopy

func (in *SlackSpec) DeepCopy() *SlackSpec

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

func (*SlackSpec) DeepCopyInto

func (in *SlackSpec) DeepCopyInto(out *SlackSpec)

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

type Store

type Store struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StoreSpec   `json:"spec,omitempty"`
	Status            StoreStatus `json:"status,omitempty"`
}

Store is the Schema for the stores API

func (*Store) DeepCopy

func (in *Store) DeepCopy() *Store

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

func (*Store) DeepCopyInto

func (in *Store) DeepCopyInto(out *Store)

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

func (*Store) DeepCopyObject

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

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

type StoreList

type StoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Store `json:"items"`
}

StoreList contains a list of Store

func (*StoreList) DeepCopy

func (in *StoreList) DeepCopy() *StoreList

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

func (*StoreList) DeepCopyInto

func (in *StoreList) DeepCopyInto(out *StoreList)

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

func (*StoreList) DeepCopyObject

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

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

type StoreSpec

type StoreSpec struct {
	// Defines the type of backend to be used for the store.
	// +kubebuilder:validation:Enum=s3;blackhole;gcp
	Backend Backend `json:"backend,omitempty"`
	// the store bucket
	Bucket string `json:"bucket"`
	// Prefix defines section of the path that will prefix files in the bucket.
	// This is to keep files from multiple sources in the same bucket.
	// +optional
	Prefix string `json:"prefix,omitempty"`
	// Envs defines a set of environment variables that can be used to access
	// secured stores which should be the case for every store
	// +optional
	Envs []corev1.EnvVar `json:"envs,omitempty"`
}

StoreSpec defines the desired state of Store

func (*StoreSpec) DeepCopy

func (in *StoreSpec) DeepCopy() *StoreSpec

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

func (*StoreSpec) DeepCopyInto

func (in *StoreSpec) DeepCopyInto(out *StoreSpec)

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

type StoreStatus

type StoreStatus struct {
	// Defines if the store can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines if the store current Reason
	Reason string `json:"reason,omitempty"`
	// A flag that indicates a resouce should be re-checked
	CheckRequested bool `json:"checkrequested,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Message string `json:"message,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Conditions []metav1.Condition `json:"Conditions,omitempty"`
}

StoreStatus defines the observed state of Store

func (*StoreStatus) DeepCopy

func (in *StoreStatus) DeepCopy() *StoreStatus

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

func (*StoreStatus) DeepCopyInto

func (in *StoreStatus) DeepCopyInto(out *StoreStatus)

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

type TokenSource

type TokenSource struct {
	// Selects a key of a ConfigMap.
	// +optional
	ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
	// Selects a key of a secret in the pod's namespace
	// +optional
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

TokenSource represents a source for the value of a Token.

func (*TokenSource) DeepCopy

func (in *TokenSource) DeepCopy() *TokenSource

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

func (*TokenSource) DeepCopyInto

func (in *TokenSource) DeepCopyInto(out *TokenSource)

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

type User

type User struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   UserSpec   `json:"spec,omitempty"`
	Status UserStatus `json:"status,omitempty"`
}

User is the Schema for the users API

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

type UserList

type UserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []User `json:"items"`
}

UserList contains a list of User

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

type UserSpec

type UserSpec struct {
	Instance string `json:"instance"`
	Username string `json:"username"`
	// Password's value.
	// +optional
	Password string `json:"password,omitempty"`
	// Source for the environment Password's value. Cannot be used if Password is
	// not empty.
	// +optional
	PasswordFrom *PasswordSource `json:"passwordFrom,omitempty"`
}

UserSpec defines the desired state of User

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

type UserStatus

type UserStatus struct {
	// Defines if the store can be considered as ready or not
	Ready metav1.ConditionStatus `json:"ready,omitempty"`
	// Defines if the store current Reason
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Message string `json:"message,omitempty"`
	// A human readable message indicating details about why the store is in
	// this condition.
	Conditions []metav1.Condition `json:"Conditions,omitempty"`
}

UserStatus defines the observed state of User

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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

Jump to

Keyboard shortcuts

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