# Packages
No description provided by the author
# Functions
AnnAdditionalProm adds additional prometheus scarping configuration annotation for the pod which has multiple metrics endpoint we assumes that the metrics path is as same as the previous metrics path.
AnnProm adds annotations for prometheus scraping metrics.
No description provided by the author
DeploymentPodSpecChanged checks whether the new deployment differs with the old one's last-applied-config.
DiscoveryMemberName returns the name of tikv discovery.
EmptyClone create an clone of the resource with the same name and namespace (if namespace-scoped), with other fields unset.
GetDeploymentLastAppliedPodTemplate set last applied pod template from Deployment's annotation.
GetOwnerRef returns TikvCluster's OwnerReference.
GetPDClient gets the pd client from the TikvCluster.
GuaranteedUpdate will retry the updateFunc to mutate the object until success, updateFunc is expected to capture the object reference from the caller context to avoid unnecessary type casting.
IgnoreErrorf returns a IgnoreError.
InferObjectKind infers the object kind.
No description provided by the author
Int32Ptr returns a pointer to an int32.
IsIgnoreError returns whether err is a IgnoreError.
IsRequeueError returns whether err is a RequeueError.
MemberConfigMapName returns the default ConfigMap name of the specified member type Deprecated TODO: remove after helm get totally abandoned.
NewFakeConfigMapControl returns a FakeConfigMapControl.
NewFakeGeneralPVCControl returns a FakeGeneralPVCControl.
NewFakeGenericControl returns a FakeGenericControl.
NewFakePDClient creates a fake pdclient that is set as the pd client.
NewFakePodControl returns a FakePodControl.
NewFakePVCControl returns a FakePVCControl.
NewFakePVControl returns a FakePVControl.
No description provided by the author
NewFakeServiceControl returns a FakeServiceControl.
NewFakeStatefulSetControl returns a FakeStatefulSetControl.
NewFakeTikvClusterControl returns a FakeTikvClusterControl.
NewRealSecretControl creates a new SecretControlInterface.
NewRealGeneralPVCControl creates a new GeneralPVCControlInterface.
No description provided by the author
NewRealPodControl creates a new PodControlInterface.
NewRealPVCControl creates a new PVCControlInterface.
NewRealPVControl creates a new PVControlInterface.
NewRealSecretControl creates a new SecretControlInterface.
NewRealServiceControl creates a new ServiceControlInterface.
NewRealStatefuSetControl returns a StatefulSetControlInterface.
NewRealTikvClusterControl creates a new TikvClusterControlInterface.
NewTypedControl wraps a GenericControlInterface to a TypedControlInterface.
No description provided by the author
PDMemberName returns pd member name.
PDPeerMemberName returns pd peer service name.
PumpMemberName returns pump member name.
For backward compatibility, pump peer member name do not has -peer suffix PumpPeerMemberName returns pump peer service name.
RequeueErrorf returns a RequeueError.
ServiceEqual compares the new Service's spec with old Service's last applied config.
SetServiceLastAppliedConfigAnnotation set last applied config info to Service's annotation.
TiCDCMemberName returns ticdc member name.
TiCDCPeerMemberName returns ticdc peer service name.
TiDBInitializerMemberName returns TiDBInitializer member name.
TiDBMemberName returns tikv member name.
TiDBPeerMemberName returns tikv peer service name.
TiFlashMemberName returns tiflash member name.
TiFlashPeerMemberName returns tiflash peer service name.
TiKVCapacity returns string resource requirement.
TiKVMemberName returns tikv member name.
TiKVPeerMemberName returns tikv peer service name.
WatchForController watch the object change from informer and add it's controller to workqueue.
WacthForObject watch the object change from informer and add it to workqueue.
# Constants
LastAppliedConfigAnnotation is annotation key of last applied configuration.
LastAppliedPodTemplate is annotation key of the last applied pod template.
# Variables
ClusterScoped controls whether operator should manage kubernetes cluster wide TiDB clusters.
controllerKind contains the schema.GroupVersionKind for tikvcluster controller type.
ExternalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints.
PDDiscoveryImage is the image of pd discovery service.
ResyncDuration is the resync time of informer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TestMode defines whether tikv operator run in test mode, test mode is only open when test.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
FakeConfigMapControl is a fake ConfigMapControlInterface.
FakeGeneralPVCControl is a fake GeneralPVCControlInterface.
FakeGenericControl is a fake GenericControlInterface.
FakePodControl is a fake PodControlInterface.
FakePVCControl is a fake PVCControlInterface.
FakePVControl is a fake PVControlInterface.
No description provided by the author
FakeServiceControl is a fake ServiceControlInterface.
FakeStatefulSetControl is a fake StatefulSetControlInterface.
FakeTikvClusterControl is a fake TikvClusterControlInterface.
IgnoreError is used to ignore this item, this error type should't be considered as a real error, no need to requeue.
RequestTracker is used by unit test for mocking request error.
RequeueError is used to requeue the item, this error type should't be considered as a real error.
# Interfaces
ConfigMapControlInterface manages configmaps used by TiDB clusters.
GeneralPVCControlInterface manages PVCs used in backup and restore's pvc.
GenericControlInterface manages generic object that managed by an arbitrary controller.
PodControlInterface manages Pods used in TikvCluster.
PVCControlInterface manages PVCs used in TikvCluster.
PVControlInterface manages PVs used in TikvCluster.
SecretControlInterface manages certificates used by TiDB clusters.
ServiceControlInterface manages Services used in TikvCluster.
StatefulSetControlInterface defines the interface that uses to create, update, and delete StatefulSets,.
TikvClusterControlInterface manages TikvClusters.
GenericControlInterface is a wrapper to manage typed object that managed by an arbitrary controller.
# Type aliases
No description provided by the author
MergeFn knows how to merge a desired object into the current object.