package
1.3.0-alpha.1
Repository: https://github.com/foolusion/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

TODO(jdef) we use a Locker to guard against concurrent task state changes, but it would bereally, really nice to avoid doing this.
makePodKey constructs etcd paths to pod items enforcing namespace rules.
No description provided by the author
NewDefaultProcurement returns the default procurement strategy that combines validation and responsible Mesos resource procurement.
NewExecutorResourceProcurer returns a Procurement procuring executor resources If a given offer has no executor IDs set, the given prototype executor resources are considered for procurement.
No description provided by the author
NewNodeProcurement returns a Procurement that checks whether the given pod task and offer have valid node informations available and wehther the pod spec node selector matches the pod labels.
NewPodResourcesProcurement converts k8s pod cpu and memory resource requirements into mesos resource allocations.
NewPortsProcurement returns a Procurement procuring ports.
NewProcureState returns an ProcureState containing an empty Spec and a deep copy of the given offer.
No description provided by the author
reconstruct a task from metadata stashed in a pod entry.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
TODO(jdef) move this somewhere else.
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

Config represents elements that are used or required in order to create a pod task that may be scheduled.
ProcureState holds the current state of the procurement pipeline.
No description provided by the author
A struct that describes a pod task.

# Interfaces

Procurement is the interface that implements resource procurement.
state store for pod tasks.

# Type aliases

AllOrNothingProcurement provides a convenient wrapper around multiple Procurement objectives: the failure of any Procurement in the set results in Procure failing.
No description provided by the author
The ProcurementFunc type is an adapter to use ordinary functions as Procurement implementations.
No description provided by the author