Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the redis.middleware.alauda.io v1 API group +kubebuilder:object:generate=true +groupName=redis.middleware.alauda.io
Index ¶
- Constants
- Variables
- type AccountType
- type BackupSorterByCreateTime
- type ClusterRedisBackupSource
- type ClusterType
- type GRPCOption
- type IpPort
- type Phase
- type RedisBackup
- type RedisBackupCondition
- type RedisBackupList
- type RedisBackupSource
- type RedisBackupSpec
- type RedisBackupStatus
- type RedisBackupTarget
- type RedisClusterBackup
- type RedisClusterBackupList
- type RedisClusterBackupSpec
- type RedisClusterBackupStatus
- type RedisUser
- func (in *RedisUser) DeepCopy() *RedisUser
- func (in *RedisUser) DeepCopyInto(out *RedisUser)
- func (in *RedisUser) DeepCopyObject() runtime.Object
- func (r *RedisUser) Default()
- func (r *RedisUser) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *RedisUser) ValidateCreate() (admission.Warnings, error)
- func (r *RedisUser) ValidateDelete() (admission.Warnings, error)
- func (r *RedisUser) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)
- type RedisUserList
- type RedisUserSpec
- type RedisUserStatus
- type S3Option
Constants ¶
const RedisBackupKind = "RedisKind"
const RedisUserFinalizer = "redisusers.redis.middleware.alauda.io/finalizer"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "redis.middleware.alauda.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType string
AccountType
const ( // System only operator is the system account System AccountType = "system" Custom AccountType = "custom" Default AccountType = "default" )
type BackupSorterByCreateTime ¶
type BackupSorterByCreateTime []RedisBackup
from new to old
func (BackupSorterByCreateTime) DeepCopy ¶
func (in BackupSorterByCreateTime) DeepCopy() BackupSorterByCreateTime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSorterByCreateTime.
func (BackupSorterByCreateTime) DeepCopyInto ¶
func (in BackupSorterByCreateTime) DeepCopyInto(out *BackupSorterByCreateTime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BackupSorterByCreateTime) Len ¶
func (b BackupSorterByCreateTime) Len() int
func (BackupSorterByCreateTime) Less ¶
func (b BackupSorterByCreateTime) Less(i, j int) bool
func (BackupSorterByCreateTime) Swap ¶
func (b BackupSorterByCreateTime) Swap(i, j int)
type ClusterRedisBackupSource ¶
type ClusterRedisBackupSource struct { // RedisClusterName redis cluster name RedisClusterName string `json:"redisClusterName,omitempty"` // StorageClassName storage class name StorageClassName string `json:"storageClassName,omitempty"` // Endpoint redis cluster endpoint Endpoint []IpPort `json:"endPoint,omitempty"` // PasswordSecret password secret PasswordSecret string `json:"passwordSecret,omitempty"` // SSLSecretName ssl secret name SSLSecretName string `json:"SSLSecretName,omitempty"` }
ClusterRedisBackupSource
func (*ClusterRedisBackupSource) DeepCopy ¶
func (in *ClusterRedisBackupSource) DeepCopy() *ClusterRedisBackupSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRedisBackupSource.
func (*ClusterRedisBackupSource) DeepCopyInto ¶
func (in *ClusterRedisBackupSource) DeepCopyInto(out *ClusterRedisBackupSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterType ¶
type ClusterType string
const ( Cluster ClusterType = "cluster" Sentinel ClusterType = "sentinel" Standalone ClusterType = "standalone" )
type GRPCOption ¶
type GRPCOption struct {
GRPC_PASSWORD_SECRET string `json:"secretName,omitempty" `
}
GRPCOption TODO
func (*GRPCOption) DeepCopy ¶
func (in *GRPCOption) DeepCopy() *GRPCOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GRPCOption.
func (*GRPCOption) DeepCopyInto ¶
func (in *GRPCOption) DeepCopyInto(out *GRPCOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IpPort ¶
type IpPort struct { Address string `json:"address,omitempty"` Port int64 `json:"port,omitempty"` MasterName string `json:"masterName,omitempty"` }
IpPort
func (*IpPort) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpPort.
func (*IpPort) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackup ¶
type RedisBackup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisBackupSpec `json:"spec,omitempty"` Status RedisBackupStatus `json:"status,omitempty"` }
RedisBackup is the Schema for the redisbackups API
func (*RedisBackup) DeepCopy ¶
func (in *RedisBackup) DeepCopy() *RedisBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackup.
func (*RedisBackup) DeepCopyInto ¶
func (in *RedisBackup) DeepCopyInto(out *RedisBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisBackup) DeepCopyObject ¶
func (in *RedisBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisBackup) Validate ¶
func (r *RedisBackup) Validate() error
Validate set the values by default if not defined and checks if the values given are valid
type RedisBackupCondition ¶
type RedisBackupCondition string
RedisBackupCondition
const ( // RedisBackupRunning means the job running its execution. RedisBackupRunning RedisBackupCondition = "Running" // RedisBackupComplete means the job has completed its execution. RedisBackupComplete RedisBackupCondition = "Complete" // RedisBackupFailed means the job has failed its execution. RedisBackupFailed RedisBackupCondition = "Failed" // "RedisDeleteFailed" means that the deletion of backup-related resources has failed. RedisDeleteFailed RedisBackupCondition = "DeleteFailed" )
These are valid conditions of a redis backup.
type RedisBackupList ¶
type RedisBackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisBackup `json:"items"` }
RedisBackupList contains a list of RedisBackup
func (*RedisBackupList) DeepCopy ¶
func (in *RedisBackupList) DeepCopy() *RedisBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupList.
func (*RedisBackupList) DeepCopyInto ¶
func (in *RedisBackupList) DeepCopyInto(out *RedisBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisBackupList) DeepCopyObject ¶
func (in *RedisBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisBackupSource ¶
type RedisBackupSource struct { // RedisFailoverName redisfailover name RedisFailoverName string `json:"redisFailoverName,omitempty"` // RedisName redis instance name RedisName string `json:"redisName,omitempty"` // StorageClassName StorageClassName string `json:"storageClassName,omitempty"` // SourceType redis cluster type SourceType ClusterType `json:"sourceType,omitempty"` // Endpoint redis endpoint Endpoint []IpPort `json:"endPoint,omitempty"` // PasswordSecret PasswordSecret string `json:"passwordSecret,omitempty"` // SSLSecretName redis ssl secret name SSLSecretName string `json:"SSLSecretName,omitempty"` }
RedisBackupSource
func (*RedisBackupSource) DeepCopy ¶
func (in *RedisBackupSource) DeepCopy() *RedisBackupSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupSource.
func (*RedisBackupSource) DeepCopyInto ¶
func (in *RedisBackupSource) DeepCopyInto(out *RedisBackupSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupSpec ¶
type RedisBackupSpec struct { // Source Source RedisBackupSource `json:"source,omitempty"` // Storage Storage resource.Quantity `json:"storage,omitempty"` // Image Image string `json:"image,omitempty"` // Target backup target Target databasesv1.RedisBackupTarget `json:"target,omitempty"` // Resources resource requirements for the job Resources corev1.ResourceRequirements `json:"resources,omitempty"` // BackoffLimit backoff limit for the job BackoffLimit *int32 `json:"backoffLimit,omitempty" protobuf:"varint,7,opt,name=backoffLimit"` // ActiveDeadlineSeconds active deadline seconds for the job ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` // NodeSelector node selector for the job NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` // SecurityContext security context for the job SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,14,opt,name=securityContext"` // ImagePullSecrets image pull secrets for the job ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` // Tolerations tolerations for the job Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` // Affinity affinity for the job Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` // PriorityClassName priority class name for the job PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,24,opt,name=priorityClassName"` // RestoreCreateAt restore create at RestoreCreateAt *metav1.Time `json:"restoreCreateAt,omitempty"` }
RedisBackupSpec defines the desired state of RedisBackup
func (*RedisBackupSpec) DeepCopy ¶
func (in *RedisBackupSpec) DeepCopy() *RedisBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupSpec.
func (*RedisBackupSpec) DeepCopyInto ¶
func (in *RedisBackupSpec) DeepCopyInto(out *RedisBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupStatus ¶
type RedisBackupStatus struct { // JobName JobName string `json:"jobName,omitempty"` // StartTime StartTime *metav1.Time `json:"startTime,omitempty"` // CompletionTime CompletionTime *metav1.Time `json:"completionTime,omitempty"` // Destination where store backup data in // +optional Destination string `json:"destination,omitempty"` // Condition Condition RedisBackupCondition `json:"condition,omitempty"` // LastCheckTime LastCheckTime *metav1.Time `json:"lastCheckTime,omitempty"` // show message when backup fail // +optional Message string `json:"message,omitempty"` }
RedisBackupStatus defines the observed state of RedisBackup
func (*RedisBackupStatus) DeepCopy ¶
func (in *RedisBackupStatus) DeepCopy() *RedisBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupStatus.
func (*RedisBackupStatus) DeepCopyInto ¶
func (in *RedisBackupStatus) DeepCopyInto(out *RedisBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupTarget ¶
type RedisBackupTarget struct { // S3Option S3Option S3Option `json:"s3Option,omitempty"` // GRPCOption grpc option GRPCOption GRPCOption `json:"grpcOption,omitempty"` }
func (*RedisBackupTarget) DeepCopy ¶
func (in *RedisBackupTarget) DeepCopy() *RedisBackupTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupTarget.
func (*RedisBackupTarget) DeepCopyInto ¶
func (in *RedisBackupTarget) DeepCopyInto(out *RedisBackupTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisClusterBackup ¶
type RedisClusterBackup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisClusterBackupSpec `json:"spec,omitempty"` Status RedisClusterBackupStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object RedisClusterBackup is the Schema for the redisclusterbackups API
func (*RedisClusterBackup) DeepCopy ¶
func (in *RedisClusterBackup) DeepCopy() *RedisClusterBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterBackup.
func (*RedisClusterBackup) DeepCopyInto ¶
func (in *RedisClusterBackup) DeepCopyInto(out *RedisClusterBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisClusterBackup) DeepCopyObject ¶
func (in *RedisClusterBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisClusterBackup) Validate ¶
func (r *RedisClusterBackup) Validate() error
Validate set the values by default if not defined and checks if the values given are valid
type RedisClusterBackupList ¶
type RedisClusterBackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisClusterBackup `json:"items"` }
RedisClusterBackupList contains a list of RedisBackup
func (*RedisClusterBackupList) DeepCopy ¶
func (in *RedisClusterBackupList) DeepCopy() *RedisClusterBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterBackupList.
func (*RedisClusterBackupList) DeepCopyInto ¶
func (in *RedisClusterBackupList) DeepCopyInto(out *RedisClusterBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisClusterBackupList) DeepCopyObject ¶
func (in *RedisClusterBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisClusterBackupSpec ¶
type RedisClusterBackupSpec struct { // Source backup source Source ClusterRedisBackupSource `json:"source,omitempty"` // Storage backup storage Storage resource.Quantity `json:"storage,omitempty"` // Image backup image Image string `json:"image,omitempty"` // Target backup target Target RedisBackupTarget `json:"target,omitempty"` // BackoffLimit backoff limit BackoffLimit *int32 `json:"backoffLimit,omitempty" protobuf:"varint,7,opt,name=backoffLimit"` // ActiveDeadlineSeconds active deadline seconds ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` // SecurityContext security context SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,14,opt,name=securityContext"` // ImagePullSecrets image pull secrets ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` // Tolerations tolerations Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` // Affinity affinity Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` // PriorityClassName priority class name PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,24,opt,name=priorityClassName"` // NodeSelector node selector NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` // Resources backup pod resource config Resources *corev1.ResourceRequirements `json:"resources,omitempty"` }
RedisClusterBackupSpec defines the desired state of RedisClusterBackup
func (*RedisClusterBackupSpec) DeepCopy ¶
func (in *RedisClusterBackupSpec) DeepCopy() *RedisClusterBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterBackupSpec.
func (*RedisClusterBackupSpec) DeepCopyInto ¶
func (in *RedisClusterBackupSpec) DeepCopyInto(out *RedisClusterBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisClusterBackupStatus ¶
type RedisClusterBackupStatus struct { // JobName job name run this backup JobName string `json:"jobName,omitempty"` // StartTime start time StartTime *metav1.Time `json:"startTime,omitempty"` // CompletionTime completion time CompletionTime *metav1.Time `json:"completionTime,omitempty"` // optional // where store backup data in Destination string `json:"destination,omitempty"` // Condition backup condition Condition RedisBackupCondition `json:"condition,omitempty"` // LastCheckTime last check time LastCheckTime *metav1.Time `json:"lastCheckTime,omitempty"` // show message when backup fail Message string `json:"message,omitempty"` }
RedisClusterBackupStatus defines the observed state of RedisClusterBackup
func (*RedisClusterBackupStatus) DeepCopy ¶
func (in *RedisClusterBackupStatus) DeepCopy() *RedisClusterBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterBackupStatus.
func (*RedisClusterBackupStatus) DeepCopyInto ¶
func (in *RedisClusterBackupStatus) DeepCopyInto(out *RedisClusterBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisUser ¶
type RedisUser struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisUserSpec `json:"spec,omitempty"` Status RedisUserStatus `json:"status,omitempty"` }
RedisUser is the Schema for the redisusers API
func (*RedisUser) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisUser.
func (*RedisUser) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisUser) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisUser) SetupWebhookWithManager ¶
func (*RedisUser) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*RedisUser) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type RedisUserList ¶
type RedisUserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisUser `json:"items"` }
RedisUserList contains a list of RedisUser
func (*RedisUserList) DeepCopy ¶
func (in *RedisUserList) DeepCopy() *RedisUserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisUserList.
func (*RedisUserList) DeepCopyInto ¶
func (in *RedisUserList) DeepCopyInto(out *RedisUserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisUserList) DeepCopyObject ¶
func (in *RedisUserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisUserSpec ¶
type RedisUserSpec struct { // Username // +kubebuilder:validation:MaxLength=64 Username string `json:"username"` // Redis Password secret name, key is password PasswordSecrets []string `json:"passwordSecrets,omitempty"` // AclRules acl rules // +kubebuilder:validation:MaxLength=4096 AclRules string `json:"aclRules,omitempty"` // Redis instance Name (required) // +kubebuilder:validation:MaxLength=63 // +kubebuilder:validation:MinLength=1 RedisName string `json:"redisName"` // redis user account type // +kubebuilder:validation:Enum=system;custom;default AccountType AccountType `json:"accountType,omitempty"` // redis user account type // +kubebuilder:validation:Enum=sentinel;cluster // +kubebuilder:default=sentinel Arch redis.RedisArch `json:"arch,omitempty"` }
RedisUserSpec defines the desired state of RedisUser
func (*RedisUserSpec) DeepCopy ¶
func (in *RedisUserSpec) DeepCopy() *RedisUserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisUserSpec.
func (*RedisUserSpec) DeepCopyInto ¶
func (in *RedisUserSpec) DeepCopyInto(out *RedisUserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisUserStatus ¶
type RedisUserStatus struct { // LastUpdatedSuccess is the last time the user was successfully updated. LastUpdatedSuccess string `json:"lastUpdateSuccess,omitempty"` // +kubebuilder:validation:Enum=Fail;Success;Pending Phase Phase `json:"Phase,omitempty"` // Message Message string `json:"message,omitempty"` // AclRules last configed acl rule AclRules string `json:"aclRules,omitempty"` }
RedisUserStatus defines the observed state of RedisUser
func (*RedisUserStatus) DeepCopy ¶
func (in *RedisUserStatus) DeepCopy() *RedisUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisUserStatus.
func (*RedisUserStatus) DeepCopyInto ¶
func (in *RedisUserStatus) DeepCopyInto(out *RedisUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Option ¶
type S3Option struct { // S3Secret S3Secret string `json:"s3Secret,omitempty"` // Bucket Bucket string `json:"bucket,omitempty"` // Dir Dir string `json:"dir,omitempty"` }
S3Option
func (*S3Option) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Option.
func (*S3Option) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.