# Functions
AddAnnotationScope will add AnnotationScope defined by 'scope' to all keys in map 'annotations'.
BuildInstanceName2TemplateMap serves as a Public API, through which users can obtain InstanceName2TemplateMap objects processed by the buildInstanceName2TemplateMap function.
BuildInstanceTemplateExts serves as a Public API, through which users can obtain InstanceTemplateExt objects processed by the buildInstanceTemplateExts function.
No description provided by the author
BuildInstanceTemplates serves as a Public API, allowing users to construct InstanceTemplates.
CalculateConcurrencyReplicas returns absolute value of concurrency for workload.
ComposeRolePriorityMap generates a priority map based on roles.
ControllerRevisionName returns the Name for a ControllerRevision in the form prefix-hash.
No description provided by the author
DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.
No description provided by the author
GenerateInstanceNames generates instance names based on certain rules: The naming convention for instances (pods) based on the Parent Name, InstanceTemplate Name, and ordinal.
No description provided by the author
GenerateInstanceNamesWithOrdinalList generates instance names based on ordinalList and offlineInstances.
No description provided by the author
No description provided by the author
GetPodNameSetFromInstanceSetCondition get the pod name sets from the InstanceSet conditions.
No description provided by the author
HashControllerRevision hashes the contents of revision's Data using FNV hashing.
IsPodUpdated tells whether the pod's spec is as expected in the InstanceSet.
MergeNodeSelectorOnceAnnotation merges its's nodeSelectorOnce annotation in place.
No description provided by the author
No description provided by the author
NewControllerRevision returns a ControllerRevision with a ControllerRef pointing to parent and indicating that parent is of parentKind.
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
No description provided by the author
ParseAnnotationsOfScope parses all annotations with AnnotationScope defined by 'scope'.
ParseNodeSelectorOnceAnnotation will return a non-nil map.
ParseParentNameAndOrdinal parses parent (instance template) Name and ordinal from the give instance name.
SortPods sorts pods by their role priority e.g.: unknown -> empty -> learner -> follower1 -> follower2 -> leader, with follower1.Name > follower2.Name reverse it if reverse==true.
No description provided by the author
# Constants
AlternativeServiceScope specifies the annotation belongs to the encapsulated alternative Services.
ConfigMapScope specifies the annotation belongs to the encapsulated ConfigMap.
ControllerRevisionHashLabel is the label used to indicate the hash value of a ControllerRevision's Data.
No description provided by the author
No description provided by the author
No description provided by the author
HeadlessServiceScope specifies the annotation belongs to the encapsulated headless Service.
No description provided by the author
MaxPlainRevisionCount specified max number of plain revision stored in status.updateRevisions.
No description provided by the author
No description provided by the author
No description provided by the author
RootScope specifies the annotation belongs to the RSM object itself.
ServiceScope specifies the annotation belongs to the encapsulated Service.
No description provided by the author
No description provided by the author
# 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
# Structs
InstanceSetExt serves as a Public Struct, used as the type for the input parameters of BuildInstanceTemplateExts.
InstanceTemplateExt serves as a Public Struct, used as the type for the construction results returned by BuildInstanceTemplateExts.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
AnnotationScope defines scope that annotations belong to.
No description provided by the author