Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the redis v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=redis.opstreelabs.in
Package v1alpha1 contains API Schema definitions for the redis v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=redis.opstreelabs.in
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "redis.opstreelabs.in", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisSpec `json:"spec,omitempty"` Status RedisStatus `json:"status,omitempty"` }
Redis will give the descriptive information for Redis
func (*Redis) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Redis) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisList ¶
type RedisList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Redis `json:"items"` }
RedisList will give the list of Redis
func (*RedisList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisList.
func (*RedisList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisMaster ¶
type RedisMaster struct { Resources Resources `json:"resources,omitempty"` RedisConfig map[string]string `json:"redisConfig"` }
RedisMaster interface will have the redis master configuration
type RedisSlave ¶
type RedisSlave struct { Resources Resources `json:"resources,omitempty"` RedisConfig map[string]string `json:"redisConfig"` }
RedisSlave interface will have the redis slave configuration
type RedisSpec ¶
type RedisSpec struct { Mode string `json:"mode"` ImageName string `json:"imageName,omitempty"` Size *int32 `json:"size,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` Master RedisMaster `json:"master,omitempty"` Slave RedisSlave `json:"slave,omitempty"` RedisPassword *string `json:"redisPassword,omitempty"` RedisExporter bool `json:"exporter"` RedisExporterImage string `json:"redisExporterImage"` RedisConfig map[string]string `json:"redisConfig"` Resources *Resources `json:"resources,omitempty"` Storage *Storage `json:"storage,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` PriorityClassName string `json:"priorityClassName,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` }
RedisSpec will define the interface for Redis Configuration Input Values
func (*RedisSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSpec.
func (*RedisSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatus ¶
type RedisStatus struct {
Cluster RedisSpec `json:"cluster,omitempty"`
}
RedisStatus will give the descriptive information for Redis status
func (*RedisStatus) DeepCopy ¶
func (in *RedisStatus) DeepCopy() *RedisStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStatus.
func (*RedisStatus) DeepCopyInto ¶
func (in *RedisStatus) DeepCopyInto(out *RedisStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceDescription ¶
ResourceDescription describes CPU and memory resources defined for a cluster.
type Resources ¶
type Resources struct { ResourceRequests ResourceDescription `json:"requests,omitempty"` ResourceLimits ResourceDescription `json:"limits,omitempty"` }
Resources describes requests and limits for the cluster resouces.
type Storage ¶
type Storage struct {
VolumeClaimTemplate corev1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty"`
}
Storage is the inteface to add pvc and pv support in redis