Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
func ComputeHash(obj interface{}) string
ComputeHash returns a hash value calculated from pod template and a collisionCount to avoid hash collision. The hash will be safe encoded to avoid bad words.
func DeepHashObject ¶
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.
Types ¶
type Action ¶
func NewCreateAction ¶
func NewDeleteAction ¶
func NewUpdateAction ¶
func NewWaitAction ¶
func (Action) ActionType ¶
func (a Action) ActionType() ActionType
func (*Action) SkipExecution ¶
func (a *Action) SkipExecution()
type ActionType ¶
type ActionType string
const ( ActionTypeCreate ActionType = "Create" ActionTypeUpdate ActionType = "Update" ActionTypeDelete ActionType = "Delete" ActionTypeWait ActionType = "Wait" )
type SchedulingGate ¶
type SchedulingGate string
const (
NetworkSchedulingGate SchedulingGate = "Network"
)
func (SchedulingGate) String ¶
func (s SchedulingGate) String() string
type Strategy ¶
type Strategy interface {
// GetActions returns a set of actions that should be taken in order to drive
// the workload deployment to the desired state. Some actions may be informational,
// such as providing context into pending actions when instance management
// policies may require waiting for pod readiness.
GetActions(
ctx context.Context,
scheme *runtime.Scheme,
deployment *v1alpha.WorkloadDeployment,
currentInstances []v1alpha.Instance,
) ([]Action, error)
}
Click to show internal directories.
Click to hide internal directories.