package
1.2.0-alpha.0
Repository: https://github.com/guildencrantz/kubernetes.git
Documentation: pkg.go.dev
# 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
No description provided by the author
No description provided by the author
No description provided by the author
NewDefaultProcurement returns the default procurement strategy that combines validation and responsible Mesos resource procurement.
No description provided by the author
NodeProcurement updates t.Spec in preparation for the task to be launched on the slave associated with the offer.
No description provided by the author
No description provided by the author
No description provided by the author
PodResourcesProcurement converts k8s pod cpu and memory resource requirements into mesos resource allocations.
No description provided by the author
PortsProcurement convert host port mappings into mesos port resource allocations.
reconstruct a task from metadata stashed in a pod entry.
ValidateProcurement checks that the offered resources are kosher, and if not panics.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
maps a Container.HostPort to the same exact offered host port, ignores .HostPort = 0.
same as HostPortMappingFixed, except that .HostPort of 0 are mapped to any port offered.
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
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
# Structs
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
A struct that describes a pod task.
# Type aliases
AllOrNothingProcurement provides a convenient wrapper around multiple Procurement objectives: the failure of any Procurement in the set results in Procure failing.
FitPredicate implementations determine if the given task "fits" into offered Mesos resources.
No description provided by the author
No description provided by the author
Procurement funcs allocate resources for a task from an offer.
No description provided by the author
No description provided by the author