v1alpha1

package
v0.0.0-...-11a0874 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisFailoverConditionAvailable   ConditionType = "Available"
	RedisFailoverConditionHealthy     ConditionType = "Healthy"
	RedisFailoverConditionRunning                   = "Running"
	RedisFailoverConditionCreating                  = "Creating"
	RedisFailoverConditionRecovering                = "Recovering"
	RedisFailoverConditionScaling                   = "Scaling"
	RedisFailoverConditionScalingDown               = "ScalingDown"
	RedisFailoverConditionUpgrading                 = "Upgrading"
	RedisFailoverConditionUpdating                  = "Updating"
	RedisFailoverConditionFailed                    = "Failed"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "middle.alauda.cn", 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 AuthSettings

type AuthSettings struct {
	SecretPath string `json:"secretPath,omitempty"`
}

AuthSettings contains settings about auth

func (*AuthSettings) DeepCopy

func (in *AuthSettings) DeepCopy() *AuthSettings

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

func (*AuthSettings) DeepCopyInto

func (in *AuthSettings) DeepCopyInto(out *AuthSettings)

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

type Condition

type Condition struct {
	// Status of RedisFailover condition.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string      `json:"lastUpdateTime,omitempty"`
	LastUpdateAt   metav1.Time `json:"-"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

Condition saves the state information of the redis RedisFailover

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string

ConditionType defines the condition that the RF can have

type Phase

type Phase string

Phase of the RF status

type ProxyInfo

type ProxyInfo struct {
	Architecture  string `json:"architecture"`
	InstanceName  string `json:"instanceName"`
	WorkerThreads int32  `json:"workThreads,omitempty"`
	ClientTimeout int32  `json:"clientTimeout,omitempty"`
}

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.

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 RedisBackupSetting

type RedisBackupSetting struct {
	Image    string     `json:"image,omitempty"`
	Schedule []Schedule `json:"schedule,omitempty"`
}

RedisBackup defines the structure used to backup the Redis Data

func (*RedisBackupSetting) DeepCopy

func (in *RedisBackupSetting) DeepCopy() *RedisBackupSetting

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

func (*RedisBackupSetting) DeepCopyInto

func (in *RedisBackupSetting) DeepCopyInto(out *RedisBackupSetting)

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

type RedisBackupSpec

type RedisBackupSpec struct {

	// Foo is an example field of RedisBackup. Edit redisbackup_types.go to remove/update
	Foo string `json:"foo,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 {
}

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 RedisBackupStorage

type RedisBackupStorage struct {
	StorageClassName string            `json:"storageClassName,omitempty"`
	Size             resource.Quantity `json:"size,omitempty"`
}

func (*RedisBackupStorage) DeepCopy

func (in *RedisBackupStorage) DeepCopy() *RedisBackupStorage

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

func (*RedisBackupStorage) DeepCopyInto

func (in *RedisBackupStorage) DeepCopyInto(out *RedisBackupStorage)

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

type RedisCommandRename

type RedisCommandRename struct {
	From string `json:"from,omitempty"`
	To   string `json:"to,omitempty"`
}

RedisCommandRename defines the specification of a "rename-command" configuration option

func (*RedisCommandRename) DeepCopy

func (in *RedisCommandRename) DeepCopy() *RedisCommandRename

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

func (*RedisCommandRename) DeepCopyInto

func (in *RedisCommandRename) DeepCopyInto(out *RedisCommandRename)

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

type RedisExporter

type RedisExporter struct {
	Enabled         bool              `json:"enabled,omitempty"`
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
}

RedisExporter defines the specification for the redis exporter

func (*RedisExporter) DeepCopy

func (in *RedisExporter) DeepCopy() *RedisExporter

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

func (*RedisExporter) DeepCopyInto

func (in *RedisExporter) DeepCopyInto(out *RedisExporter)

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

type RedisFailover

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

	Spec   RedisFailoverSpec   `json:"spec,omitempty"`
	Status RedisFailoverStatus `json:"status,omitempty"`
}

RedisFailover is the Schema for the redisfailovers API

func (*RedisFailover) DeepCopy

func (in *RedisFailover) DeepCopy() *RedisFailover

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

func (*RedisFailover) DeepCopyInto

func (in *RedisFailover) DeepCopyInto(out *RedisFailover)

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

func (*RedisFailover) DeepCopyObject

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

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

func (*RedisFailover) Validate

func (r *RedisFailover) Validate() error

type RedisFailoverList

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

RedisFailoverList contains a list of RedisFailover

func (*RedisFailoverList) DeepCopy

func (in *RedisFailoverList) DeepCopy() *RedisFailoverList

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

func (*RedisFailoverList) DeepCopyInto

func (in *RedisFailoverList) DeepCopyInto(out *RedisFailoverList)

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

func (*RedisFailoverList) DeepCopyObject

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

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

type RedisFailoverSpec

type RedisFailoverSpec struct {
	Redis          RedisSettings    `json:"redis,omitempty"`
	Sentinel       SentinelSettings `json:"sentinel,omitempty"`
	Auth           AuthSettings     `json:"auth,omitempty"`
	LabelWhitelist []string         `json:"labelWhitelist,omitempty"`
}

RedisFailoverSpec defines the desired state of RedisFailover

func (*RedisFailoverSpec) DeepCopy

func (in *RedisFailoverSpec) DeepCopy() *RedisFailoverSpec

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

func (*RedisFailoverSpec) DeepCopyInto

func (in *RedisFailoverSpec) DeepCopyInto(out *RedisFailoverSpec)

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

type RedisFailoverStatus

type RedisFailoverStatus struct {
	Conditions []Condition `json:"conditions,omitempty"`
	// The last time this condition was updated.
	// Creating, Pending, Fail, Ready
	Phase string `json:"phase,omitempty"`

	Instance RedisStatusInstance `json:"instance,omitempty"`
	Master   RedisStatusMaster   `json:"master,omitempty"`
	Version  string              `json:"version,omitempty"`
}

RedisStatus

func (*RedisFailoverStatus) ClearCondition

func (rf *RedisFailoverStatus) ClearCondition(t ConditionType)

func (*RedisFailoverStatus) DeepCopy

func (in *RedisFailoverStatus) DeepCopy() *RedisFailoverStatus

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

func (*RedisFailoverStatus) DeepCopyInto

func (in *RedisFailoverStatus) DeepCopyInto(out *RedisFailoverStatus)

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

func (*RedisFailoverStatus) DescConditionsByTime

func (rf *RedisFailoverStatus) DescConditionsByTime()

func (*RedisFailoverStatus) IsLastConditionWaitingPodReady

func (rf *RedisFailoverStatus) IsLastConditionWaitingPodReady() bool

func (*RedisFailoverStatus) SetCreateCondition

func (rf *RedisFailoverStatus) SetCreateCondition(message string)

func (*RedisFailoverStatus) SetFailedCondition

func (rf *RedisFailoverStatus) SetFailedCondition(message string)

func (*RedisFailoverStatus) SetReadyCondition

func (rf *RedisFailoverStatus) SetReadyCondition(message string)

func (*RedisFailoverStatus) SetScalingDownCondition

func (rf *RedisFailoverStatus) SetScalingDownCondition(message string)

func (*RedisFailoverStatus) SetScalingUpCondition

func (rf *RedisFailoverStatus) SetScalingUpCondition(message string)

func (*RedisFailoverStatus) SetUpdatingCondition

func (rf *RedisFailoverStatus) SetUpdatingCondition(message string)

func (*RedisFailoverStatus) SetUpgradingCondition

func (rf *RedisFailoverStatus) SetUpgradingCondition(message string)

func (*RedisFailoverStatus) SetWaitingPodReadyCondition

func (rf *RedisFailoverStatus) SetWaitingPodReadyCondition(message string)

type RedisProxy

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

	Spec   RedisProxySpec   `json:"spec,omitempty"`
	Status RedisProxyStatus `json:"status,omitempty"`
}

RedisProxy is the Schema for the redisproxies API

func (*RedisProxy) DeepCopy

func (in *RedisProxy) DeepCopy() *RedisProxy

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

func (*RedisProxy) DeepCopyInto

func (in *RedisProxy) DeepCopyInto(out *RedisProxy)

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

func (*RedisProxy) DeepCopyObject

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

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

func (*RedisProxy) Validate

func (rp *RedisProxy) Validate() error

type RedisProxyList

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

RedisProxyList contains a list of RedisProxy

func (*RedisProxyList) DeepCopy

func (in *RedisProxyList) DeepCopy() *RedisProxyList

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

func (*RedisProxyList) DeepCopyInto

func (in *RedisProxyList) DeepCopyInto(out *RedisProxyList)

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

func (*RedisProxyList) DeepCopyObject

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

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

type RedisProxySpec

type RedisProxySpec struct {

	// Foo is an example field of RedisProxy. Edit redisproxy_types.go to remove/update
	ProxyInfo          ProxyInfo                     `json:"proxyInfo"`
	Image              string                        `json:"image,omitempty"`
	ImagePullPolicy    corev1.PullPolicy             `json:"imagePullPolicy,omitempty"`
	Replicas           int32                         `json:"replicas,omitempty"`
	Resources          corev1.ResourceRequirements   `json:"resources,omitempty"`
	Affinity           *corev1.Affinity              `json:"affinity,omitempty"`
	SecurityContext    *corev1.PodSecurityContext    `json:"securityContext,omitempty"`
	ImagePullSecrets   []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	Auth               AuthSettings                  `json:"auth,omitempty"`
	Tolerations        []corev1.Toleration           `json:"tolerations,omitempty"`
	NodeSelector       map[string]string             `json:"nodeSelector,omitempty"`
	PodAnnotations     map[string]string             `json:"podAnnotations,omitempty"`
	ServiceAnnotations map[string]string             `json:"serviceAnnotations,omitempty"`
}

RedisProxySpec defines the desired state of RedisProxy

func (*RedisProxySpec) DeepCopy

func (in *RedisProxySpec) DeepCopy() *RedisProxySpec

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

func (*RedisProxySpec) DeepCopyInto

func (in *RedisProxySpec) DeepCopyInto(out *RedisProxySpec)

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

type RedisProxyStatus

type RedisProxyStatus struct {
	Conditions []Condition `json:"conditions,omitempty"`
	Version    string      `json:"version,omitempty"`
}

RedisProxyStatus defines the observed state of RedisProxy

func (*RedisProxyStatus) DeepCopy

func (in *RedisProxyStatus) DeepCopy() *RedisProxyStatus

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

func (*RedisProxyStatus) DeepCopyInto

func (in *RedisProxyStatus) DeepCopyInto(out *RedisProxyStatus)

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

func (*RedisProxyStatus) DescConditionsByTime

func (rp *RedisProxyStatus) DescConditionsByTime()

func (*RedisProxyStatus) IsLastConditionUpgrading

func (rp *RedisProxyStatus) IsLastConditionUpgrading() bool

func (*RedisProxyStatus) SetReadyCondition

func (rp *RedisProxyStatus) SetReadyCondition(message string)

func (*RedisProxyStatus) SetUpgradingCondition

func (rp *RedisProxyStatus) SetUpgradingCondition(message string)

type RedisRestore

type RedisRestore struct {
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	BackupName      string            `json:"backupName,omitempty"`
}

RedisBackup defines the structure used to restore the Redis Data

func (*RedisRestore) DeepCopy

func (in *RedisRestore) DeepCopy() *RedisRestore

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

func (*RedisRestore) DeepCopyInto

func (in *RedisRestore) DeepCopyInto(out *RedisRestore)

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

type RedisSettings

type RedisSettings struct {
	Image                string                        `json:"image,omitempty"`
	ImagePullPolicy      corev1.PullPolicy             `json:"imagePullPolicy,omitempty"`
	Replicas             int32                         `json:"replicas,omitempty"`
	Resources            corev1.ResourceRequirements   `json:"resources,omitempty"`
	ConfigConfigMap      string                        `json:"configConfigMap,omitempty"`
	CustomConfig         map[string]string             `json:"customConfig,omitempty"`
	CustomCommandRenames []RedisCommandRename          `json:"customCommandRenames,omitempty"`
	Command              []string                      `json:"command,omitempty"`
	ShutdownConfigMap    string                        `json:"shutdownConfigMap,omitempty"`
	Storage              RedisStorage                  `json:"storage,omitempty"`
	Exporter             RedisExporter                 `json:"exporter,omitempty"`
	Affinity             *corev1.Affinity              `json:"affinity,omitempty"`
	SecurityContext      *corev1.PodSecurityContext    `json:"securityContext,omitempty"`
	ImagePullSecrets     []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	Tolerations          []corev1.Toleration           `json:"tolerations,omitempty"`
	NodeSelector         map[string]string             `json:"nodeSelector,omitempty"`
	PodAnnotations       map[string]string             `json:"podAnnotations,omitempty"`
	ServiceAnnotations   map[string]string             `json:"serviceAnnotations,omitempty"`
	HostNetwork          bool                          `json:"hostNetwork,omitempty"`
	DNSPolicy            corev1.DNSPolicy              `json:"dnsPolicy,omitempty"`
	Backup               RedisBackup                   `json:"backup,omitempty"`
	Restore              RedisRestore                  `json:"restore,omitempty"`
}

RedisSettings defines the specification of the redis cluster

func (*RedisSettings) DeepCopy

func (in *RedisSettings) DeepCopy() *RedisSettings

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

func (*RedisSettings) DeepCopyInto

func (in *RedisSettings) DeepCopyInto(out *RedisSettings)

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

type RedisStatusInstance

type RedisStatusInstance struct {
	Redis    RedisStatusInstanceRedis    `json:"redis,omitempty"`
	Sentinel RedisStatusInstanceSentinel `json:"sentinel,omitempty"`
}

func (*RedisStatusInstance) DeepCopy

func (in *RedisStatusInstance) DeepCopy() *RedisStatusInstance

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

func (*RedisStatusInstance) DeepCopyInto

func (in *RedisStatusInstance) DeepCopyInto(out *RedisStatusInstance)

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

type RedisStatusInstanceRedis

type RedisStatusInstanceRedis struct {
	Size  int32 `json:"size,omitempty"`
	Ready int32 `json:"ready,omitempty"`
}

func (*RedisStatusInstanceRedis) DeepCopy

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

func (*RedisStatusInstanceRedis) DeepCopyInto

func (in *RedisStatusInstanceRedis) DeepCopyInto(out *RedisStatusInstanceRedis)

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

type RedisStatusInstanceSentinel

type RedisStatusInstanceSentinel struct {
	Size      int32  `json:"size,omitempty"`
	Ready     int32  `json:"ready,omitempty"`
	Service   string `json:"service,omitempty"`
	ClusterIP string `json:"clusterIp,omitempty"`
	Port      string `json:"port,omitempty"`
}

func (*RedisStatusInstanceSentinel) DeepCopy

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

func (*RedisStatusInstanceSentinel) DeepCopyInto

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

type RedisStatusMaster

type RedisStatusMaster struct {
	Name    string                  `json:"name"`
	Status  RedisStatusMasterStatus `json:"status"`
	Address string                  `json:"address"`
}

func (*RedisStatusMaster) DeepCopy

func (in *RedisStatusMaster) DeepCopy() *RedisStatusMaster

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

func (*RedisStatusMaster) DeepCopyInto

func (in *RedisStatusMaster) DeepCopyInto(out *RedisStatusMaster)

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

type RedisStatusMasterStatus

type RedisStatusMasterStatus string
const (
	RedisStatusMasterOK   RedisStatusMasterStatus = "ok"
	RedisStatusMasterDown RedisStatusMasterStatus = "down"
)

type RedisStorage

type RedisStorage struct {
	KeepAfterDeletion bool                         `json:"keepAfterDeletion,omitempty"`
	EmptyDir          *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"`

	PersistentVolumeClaim *corev1.PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"`
}

func (*RedisStorage) DeepCopy

func (in *RedisStorage) DeepCopy() *RedisStorage

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

func (*RedisStorage) DeepCopyInto

func (in *RedisStorage) DeepCopyInto(out *RedisStorage)

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

type Schedule

type Schedule struct {
	Name              string             `json:"name"`
	Schedule          string             `json:"schedule"`
	Keep              int32              `json:"keep"`
	KeepAfterDeletion bool               `json:"keepAfterDeletion,omitempty"`
	Storage           RedisBackupStorage `json:"storage"`
}

func (*Schedule) DeepCopy

func (in *Schedule) DeepCopy() *Schedule

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

func (*Schedule) DeepCopyInto

func (in *Schedule) DeepCopyInto(out *Schedule)

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

type SentinelExporter

type SentinelExporter struct {
	Enabled         bool              `json:"enabled,omitempty"`
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
}

SentinelExporter defines the specification for the sentinel exporter

func (*SentinelExporter) DeepCopy

func (in *SentinelExporter) DeepCopy() *SentinelExporter

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

func (*SentinelExporter) DeepCopyInto

func (in *SentinelExporter) DeepCopyInto(out *SentinelExporter)

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

type SentinelSettings

type SentinelSettings struct {
	Image              string                        `json:"image,omitempty"`
	ImagePullPolicy    corev1.PullPolicy             `json:"imagePullPolicy,omitempty"`
	Replicas           int32                         `json:"replicas,omitempty"`
	Resources          corev1.ResourceRequirements   `json:"resources,omitempty"`
	CustomConfig       []string                      `json:"customConfig,omitempty"`
	Command            []string                      `json:"command,omitempty"`
	Affinity           *corev1.Affinity              `json:"affinity,omitempty"`
	SecurityContext    *corev1.PodSecurityContext    `json:"securityContext,omitempty"`
	ImagePullSecrets   []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	Tolerations        []corev1.Toleration           `json:"tolerations,omitempty"`
	NodeSelector       map[string]string             `json:"nodeSelector,omitempty"`
	PodAnnotations     map[string]string             `json:"podAnnotations,omitempty"`
	ServiceAnnotations map[string]string             `json:"serviceAnnotations,omitempty"`
	Exporter           SentinelExporter              `json:"exporter,omitempty"`
	HostNetwork        bool                          `json:"hostNetwork,omitempty"`
	DNSPolicy          corev1.DNSPolicy              `json:"dnsPolicy,omitempty"`
}

SentinelSettings defines the specification of the sentinel cluster

func (*SentinelSettings) DeepCopy

func (in *SentinelSettings) DeepCopy() *SentinelSettings

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

func (*SentinelSettings) DeepCopyInto

func (in *SentinelSettings) DeepCopyInto(out *SentinelSettings)

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