# Functions

AffinityForNodeSelector creates an Affinity for NodeSelector Externally we use NodeSelector for simplicity, while internally we convert it to affinity which can express complex scheduling rules.
AntiAffinityForPod creates a PodAntiAffinity with antiLabels.
No description provided by the author
No description provided by the author
ResourceRequirement creates ResourceRequirements for MemberSpec Optionally pass in a default value.

# Constants

StoreDownState is state when tikv store is down.
StoreOfflineState is state when tikv store is offline.
StoreTombstoneState is state when tikv store is tombstone.
StoreUpState is state when tikv store is normal.