labeler

package
v0.0.0-...-9aebcc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRoleSelector

func HasRoleSelector(name string) labels.Selector

HasRoleSelector returns a label selector that selects all Pods for a Cluster that have been labeled as having a role.

func NonPrimarySelector

func NonPrimarySelector(name string) labels.Selector

NonPrimarySelector returns a label selector that selects all Pods excluding primaries of a Cluster.

func PrimarySelector

func PrimarySelector(name string) labels.Selector

PrimarySelector returns a label selector that selects only primaries of a Cluster's Pods.

func SecondarySelector

func SecondarySelector(name string) labels.Selector

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

Run runs the ClusterLabelerController.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL