Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=databases.spotahome.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func VersionKind(kind string) schema.GroupVersionKind
- type AuthSettings
- type BootstrapSettings
- type RedisCommandRename
- type RedisExporter
- type RedisFailover
- type RedisFailoverList
- type RedisFailoverSpec
- type RedisSettings
- type RedisStorage
- type SentinelExporter
- type SentinelSettings
Constants ¶
const ( RFKind = "RedisFailover" RFName = "redisfailover" RFNamePlural = "redisfailovers" RFScope = apiextensionsv1beta1.NamespaceScoped )
Team constants
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: redisfailover.GroupName, Version: version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func VersionKind ¶
func VersionKind(kind string) schema.GroupVersionKind
VersionKind takes an unqualified kind and returns back a Group qualified GroupVersionKind
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 BootstrapSettings ¶
type BootstrapSettings struct { Host string `json:"host,omitempty"` Port string `json:"port,omitempty"` AllowSentinels bool `json:"allowSentinels,omitempty"` }
BootstrapSettings contains settings about a potential bootstrap node
func (*BootstrapSettings) DeepCopy ¶
func (in *BootstrapSettings) DeepCopy() *BootstrapSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapSettings.
func (*BootstrapSettings) DeepCopyInto ¶
func (in *BootstrapSettings) DeepCopyInto(out *BootstrapSettings)
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"` Args []string `json:"args,omitempty"` Env []corev1.EnvVar `json:"env,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"` }
RedisFailover represents a Redis failover
func (*RedisFailover) Bootstrapping ¶
func (r *RedisFailover) Bootstrapping() bool
Bootstrapping returns true when a BootstrapNode is provided to the RedisFailover spec. Otherwise, it returns false.
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) SentinelsAllowed ¶
func (r *RedisFailover) SentinelsAllowed() bool
SentinelsAllowed returns true if not Bootstrapping orif BootstrapNode settings allow sentinels to exist
func (*RedisFailover) Validate ¶
func (r *RedisFailover) Validate() error
Validate set the values by default if not defined and checks if the values given are valid
type RedisFailoverList ¶
type RedisFailoverList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []RedisFailover `json:"items"` }
RedisFailoverList represents a Redis failover list
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"` BootstrapNode *BootstrapSettings `json:"bootstrapNode,omitempty"` }
RedisFailoverSpec represents a Redis failover spec
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 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"` CustomConfig []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"` PriorityClassName string `json:"priorityClassName,omitempty"` ServiceAccountName string `json:"serviceAccountName,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 RedisStorage ¶
type RedisStorage struct { KeepAfterDeletion bool `json:"keepAfterDeletion,omitempty"` EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"` PersistentVolumeClaim *corev1.PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"` }
RedisStorage defines the structure used to store the Redis Data
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 SentinelExporter ¶
type SentinelExporter struct { Enabled bool `json:"enabled,omitempty"` Image string `json:"image,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` Args []string `json:"args,omitempty"` Env []corev1.EnvVar `json:"env,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"` PriorityClassName string `json:"priorityClassName,omitempty"` ServiceAccountName string `json:"serviceAccountName,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.