Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +groupName=redis.operator.joelws.com
Index ¶
- Constants
- Variables
- func RegisterDeepCopies(scheme *runtime.Scheme) errordeprecated
- func Resource(resource string) schema.GroupResource
- type ConfigMap
- type PodPolicy
- type Redis
- type RedisList
- type SentinelSpec
- type SentinelStatus
- type ServerCondition
- type ServerConditionType
- type ServerPhase
- type ServerSpec
- type ServerStatus
- func (in *ServerStatus) DeepCopy() *ServerStatus
- func (in *ServerStatus) DeepCopyInto(out *ServerStatus)
- func (ss *ServerStatus) MarkAddSeedMasterCondition()
- func (ss *ServerStatus) MarkAddSentinelCondition()
- func (ss *ServerStatus) MarkAddSlaveCondition()
- func (ss *ServerStatus) MarkReadyCondition()
- func (ss *ServerStatus) MarkRemoveSeedMasterCondition()
- func (ss *ServerStatus) MarkRemoveSentinelCondition()
- func (ss *ServerStatus) MarkRemoveSlaveCondition()
- func (ss *ServerStatus) SetPhase(phase ServerPhase)
- type SlaveSpec
- type SlaveStatus
Constants ¶
const ( CRDResourceKind = "Redis" RedisGroupName = "operator.joelws.com" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: RedisGroupName, Version: "v1"}
Functions ¶
func RegisterDeepCopies
deprecated
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type PodPolicy ¶
type PodPolicy struct {
Resources v1.ResourceRequirements `json:"resources,omitempty"`
}
func (*PodPolicy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPolicy.
func (*PodPolicy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Redis ¶
type Redis struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServerSpec `json:"spec"` Status ServerStatus `json:"status"` }
func (*Redis) AsOwner ¶
func (c *Redis) AsOwner() metav1.OwnerReference
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"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata metav1.ListMeta `json:"metadata,omitempty"` Items []Redis `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
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 SentinelSpec ¶
type SentinelSpec struct { Replicas int32 `json:"replicas"` Quorum int32 `json:"quorum"` ConfigMap ConfigMap `json:"configMap"` }
func (*SentinelSpec) DeepCopy ¶
func (in *SentinelSpec) DeepCopy() *SentinelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelSpec.
func (*SentinelSpec) DeepCopyInto ¶
func (in *SentinelSpec) DeepCopyInto(out *SentinelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelStatus ¶
type SentinelStatus struct { Ready []string `json:"ready,omitempty"` Unready []string `json:"unready,omitempty"` }
func (*SentinelStatus) DeepCopy ¶
func (in *SentinelStatus) DeepCopy() *SentinelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelStatus.
func (*SentinelStatus) DeepCopyInto ¶
func (in *SentinelStatus) DeepCopyInto(out *SentinelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerCondition ¶
type ServerCondition struct { Type ServerConditionType `json:"type"` Reason string `json:"reason,omitempty"` }
func (*ServerCondition) DeepCopy ¶
func (in *ServerCondition) DeepCopy() *ServerCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerCondition.
func (*ServerCondition) DeepCopyInto ¶
func (in *ServerCondition) DeepCopyInto(out *ServerCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerConditionType ¶
type ServerConditionType string
const ( ServerConditionAddSeedMaster ServerConditionType = "AddingSeedMaster" ServerConditionRemoveSeedMaster ServerConditionType = "removingSeedMaster" ServerConditionAddSentinel ServerConditionType = "AddingSentinel" ServerConditionRemoveSentinel ServerConditionType = "removingSentinel" ServerConditionAddSlave ServerConditionType = "AddingSlave" ServerConditionRemoveSlave ServerConditionType = "removingSlave" ServerConditionReady ServerConditionType = "Ready" )
type ServerPhase ¶
type ServerPhase string
const ( ServerCreatingPhase ServerPhase = "Creating" ServerStoppingPhase ServerPhase = "Stopping" ServerRunningPhase ServerPhase = "Running" ServerFailedPhase ServerPhase = "Failed" )
type ServerSpec ¶
type ServerSpec struct { Sentinels SentinelSpec `json:"sentinels"` Slaves SlaveSpec `json:"slaves"` BaseImage string `json:"baseImage,omitempty"` Version string `json:"version,omitempty"` Paused bool `json:"paused,omitempty"` Pod *PodPolicy `json:"pod,omitempty"` }
func (*ServerSpec) ApplyDefaults ¶
func (s *ServerSpec) ApplyDefaults(name string)
func (*ServerSpec) DeepCopy ¶
func (in *ServerSpec) DeepCopy() *ServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.
func (*ServerSpec) DeepCopyInto ¶
func (in *ServerSpec) DeepCopyInto(out *ServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServerSpec) GetRedisRunAsUser ¶
func (s *ServerSpec) GetRedisRunAsUser() (runAsPointer *int64)
Adding runAsUser: 100 to ContainerSpec as it failed to chown (related to underlaying storage config)
type ServerStatus ¶
type ServerStatus struct { Phase ServerPhase `json:"phase"` Conditions []ServerCondition `json:"conditions"` SlaveStatus SlaveStatus `json:"slaves"` SentinelStatus SentinelStatus `json:"sentinels"` }
func (*ServerStatus) DeepCopy ¶
func (in *ServerStatus) DeepCopy() *ServerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatus.
func (*ServerStatus) DeepCopyInto ¶
func (in *ServerStatus) DeepCopyInto(out *ServerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServerStatus) MarkAddSeedMasterCondition ¶
func (ss *ServerStatus) MarkAddSeedMasterCondition()
func (*ServerStatus) MarkAddSentinelCondition ¶
func (ss *ServerStatus) MarkAddSentinelCondition()
func (*ServerStatus) MarkAddSlaveCondition ¶
func (ss *ServerStatus) MarkAddSlaveCondition()
func (*ServerStatus) MarkReadyCondition ¶
func (ss *ServerStatus) MarkReadyCondition()
func (*ServerStatus) MarkRemoveSeedMasterCondition ¶
func (ss *ServerStatus) MarkRemoveSeedMasterCondition()
func (*ServerStatus) MarkRemoveSentinelCondition ¶
func (ss *ServerStatus) MarkRemoveSentinelCondition()
func (*ServerStatus) MarkRemoveSlaveCondition ¶
func (ss *ServerStatus) MarkRemoveSlaveCondition()
func (*ServerStatus) SetPhase ¶
func (ss *ServerStatus) SetPhase(phase ServerPhase)
type SlaveSpec ¶
func (*SlaveSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlaveSpec.
func (*SlaveSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlaveStatus ¶
type SlaveStatus struct { Ready []string `json:"ready,omitempty"` Unready []string `json:"unready,omitempty"` }
func (*SlaveStatus) DeepCopy ¶
func (in *SlaveStatus) DeepCopy() *SlaveStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlaveStatus.
func (*SlaveStatus) DeepCopyInto ¶
func (in *SlaveStatus) DeepCopyInto(out *SlaveStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.