Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlInterface ¶
type ControlInterface interface { // UpdateRedis implements the control logic for StatefulSet creation, update, and deletion UpdateRedisCluster(*v1alpha1.RedisCluster) error }
ControlInterface implements the control logic for updating Rediss and their children StatefulSets. It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.
func NewDefaultRedisControl ¶
func NewDefaultRedisControl( rcControl controller.RedisClusterControlInterface, replicaMemberManager manager.Manager, replicaHAMemberManager manager.Manager, redisClusterMemberManager manager.Manager, reclaimPolicyManager manager.Manager, metaManager manager.Manager, recorder record.EventRecorder) ControlInterface
NewDefaultRedisControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for Rediss.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller controls Rediss.
func NewController ¶
func NewController( kubeCli kubernetes.Interface, cli versioned.Interface, informerFactory informers.SharedInformerFactory, kubeInformerFactory kubeinformers.SharedInformerFactory, autoFailover bool, ) *Controller
NewController creates a Redis controller.
func (*Controller) Run ¶
func (rcc *Controller) Run(workers int, stopCh <-chan struct{})
Run runs the Redis controller.
Click to show internal directories.
Click to hide internal directories.