Documentation ¶
Index ¶
- Constants
- func ClusterListOptions(clusterName string) metav1.ListOptions
- type Label
- func (l Label) App(name string) Label
- func (l Label) AppType() string
- func (l Label) Cluster(name string) Label
- func (l Label) IsMonitor() bool
- func (l Label) IsPD() bool
- func (l Label) IsTiDB() bool
- func (l Label) IsTiKV() bool
- func (l Label) LabelSelector() *metav1.LabelSelector
- func (l Label) Labels() map[string]string
- func (l Label) Monitor() Label
- func (l Label) Namespace(name string) Label
- func (l Label) PD() Label
- func (l Label) Selector() (labels.Selector, error)
- func (l Label) TiDB() Label
- func (l Label) TiKV() Label
Constants ¶
View Source
const ( // ClusterLabelKey is cluster label key ClusterLabelKey string = "cluster.pingcap.com/tidbCluster" // NamespaceLabelKey is cluster label key NamespaceLabelKey string = "cluster.pingcap.com/namespace" // AppLabelKey is app label key AppLabelKey string = "cluster.pingcap.com/app" // OwnerLabelKey is owner label key OwnerLabelKey string = "cluster.pingcap.com/owner" // ClusterIDLabelKey is cluster id label key ClusterIDLabelKey string = "cluster.pingcap.com/clusterId" // StoreIDLabelKey is store id label key StoreIDLabelKey string = "cluster.pingcap.com/storeId" // MemberIDLabelKey is member id label key MemberIDLabelKey string = "cluster.pingcap.com/memberId" // AnnPodNameKey is podName annotations key AnnPodNameKey string = "volume.pingcap.com/podName" // AnnPVCDeferDeleting is pvc defer deletion key AnnPVCDeferDeleting = "cluster.pingcap.com/pvc-defer-deleting" // AnnPaused is the annotation that the object is paused AnnPaused string = "cluster.pingcap.com/paused" // PDLabelVal is PD label value PDLabelVal string = "pd" // TiDBLabelVal is TiDB label value TiDBLabelVal string = "tidb" // TiKVLabelVal is TiKV label value TiKVLabelVal string = "tikv" // MonitorLabelVal is Monitor label value MonitorLabelVal string = "monitor" // ClusterLabelVal is cluster label value ClusterLabelVal string = "tidbCluster" )
Variables ¶
This section is empty.
Functions ¶
func ClusterListOptions ¶
func ClusterListOptions(clusterName string) metav1.ListOptions
ClusterListOptions returns a cluster ListOptions filter
Types ¶
type Label ¶
Label is the label field in metadata
func (Label) LabelSelector ¶
func (l Label) LabelSelector() *metav1.LabelSelector
LabelSelector gets LabelSelector from label
Click to show internal directories.
Click to hide internal directories.