package
1.2.0-alpha.5
Repository: https://github.com/bboreham/kubernetes.git
Documentation: pkg.go.dev

# Functions

FixedMapper maps k8s host ports to offered ports ignoring hostPorts == 0 (remaining pod-private).
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.
NewHostPortMapper returns a new mapper based based on the port mapping key value.
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.
WildcardMapper maps k8s wildcard ports (hostPort == 0) to any available offer port.

# 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

# Structs

No description provided by the author
A HostPortMapping represents the mapping between k8s container ports ports offered by mesos.
No description provided by the author
No description provided by the author
ProcureState holds the current state of the procurement pipeline.
No description provided by the author
A struct that describes a pod task.

# Interfaces

Objects implementing the HostPortMapper interface generate port mappings from k8s container ports to ports offered by mesos.
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
HostPortMapperFunc is a function adapter to the HostPortMapper interface.
The ProcurementFunc type is an adapter to use ordinary functions as Procurement implementations.
No description provided by the author