Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContainerName = "name" ContainerImage = "image" )
Variables ¶
This section is empty.
Functions ¶
func CheckPossible ¶
func CheckPossible(member api.MemberStatus) bool
CheckPossible returns true if rotation is possible
Types ¶
type Mode ¶
type Mode int
const ( SkippedRotation Mode = iota // SilentRotation Propagates changes without restart. Returned plan is executed in High actions SilentRotation // InPlaceRotation Silently accept changes. Returned plan is executed in Normal actions InPlaceRotation // GracefulRotation Schedule pod restart. Returned plan is ignored GracefulRotation // EnforcedRotation Enforce pod restart. Returned plan is ignored EnforcedRotation )
func IsRotationRequired ¶
func IsRotationRequired(acs sutil.ACS, spec api.DeploymentSpec, member api.MemberStatus, group api.ServerGroup, pod *core.Pod, specTemplate, statusTemplate *api.ArangoMemberPodTemplate) (mode Mode, plan api.Plan, specChecksum string, reason string, err error)
Click to show internal directories.
Click to hide internal directories.