package
1.7.0-alpha.3
Repository: https://github.com/pingcap/tidb-operator.git
Documentation: pkg.go.dev

# Packages

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
No description provided by the author

# Functions

AppendEnv appends envs `b` into `a` ignoring envs whose names already exist in `b`.
AppendEnvIfPresent appends the given environment if present.
AppendOverwriteEnv appends envs b into a and overwrites the envs whose names already exist in b.
BuildStorageVolumeAndVolumeMount builds VolumeMounts and PVCs for volumes declaired in spec.storageVolumes of ComponentSpec.
No description provided by the author
No description provided by the author
CombineStringMap merges maps into a new map.
CopyStringMap copy annotations to a new string map.
No description provided by the author
No description provided by the author
FixedLengthRandomPasswordBytes generates a random password.
No description provided by the author
GetDSN get tidb dsn.
No description provided by the author
No description provided by the author
GetPodOrdinals gets desired ordials of member in given TidbCluster.
No description provided by the author
IsOwnedByTidbCluster checks if the given object is owned by TidbCluster.
No description provided by the author
No description provided by the author
No description provided by the author
IsSubMapOf returns whether the first map is a sub map of the second map.
No description provided by the author
MustNewRequirement calls NewRequirement and panics on failure.
OpenDB opens db.
No description provided by the author
RandomBytes generates some random bytes that can be used as a token or as a key.
ResolvePVCFromPod parses pod volumes definition, and returns all PVCs mounted by this pod If the Pod don't have any PVC, return error 'NotFound'.
RetainManagedFields retains the fields in the old object that are managed by kube-controller-manager, such as node ports.
SetPassword set tidb password.
StatefulSetEqual compares the new Statefulset's spec with old Statefulset's last applied config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

LastAppliedConfigAnnotation is annotation key of last applied configuration.

# Variables

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
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

SortEnvByName implements sort.Interface to sort env list by name.