Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRoleSelector ¶
HasRoleSelector returns a label selector that selects all Pods for a Cluster that have been labeled as having a role.
func NonPrimarySelector ¶
NonPrimarySelector returns a label selector that selects all Pods excluding primaries of a Cluster.
func PrimarySelector ¶
PrimarySelector returns a label selector that selects only primaries of a Cluster's Pods.
func SecondarySelector ¶
SecondarySelector returns a label selector that selects only secondaries of a Cluster's Pods.
Types ¶
type ClusterLabelerController ¶
type ClusterLabelerController struct {
// contains filtered or unexported fields
}
ClusterLabelerController adds annotations about the InnoDB cluster state to the Cluster's Pods. This controller should only be run iff the the local MySQL instance believes that it is the primary of the MySQL cluster.
func NewClusterLabelerController ¶
func NewClusterLabelerController( localInstance *cluster.Instance, kubeClient kubernetes.Interface, podInformer corev1informers.PodInformer, ) *ClusterLabelerController
NewClusterLabelerController creates a new ClusterLabelerController.
func (*ClusterLabelerController) EnqueueClusterStatus ¶
func (clc *ClusterLabelerController) EnqueueClusterStatus(obj interface{}) error
EnqueueClusterStatus takes an *innodb.ClusterStatus, stores it in the cache.Store, and then enqueues its key.
func (*ClusterLabelerController) Run ¶
func (clc *ClusterLabelerController) Run(ctx context.Context)
Run runs the ClusterLabelerController.