add GetRuntime() to simplify integration with 3rd party kubelet extensions like kubernetes-mesos

This commit is contained in:
James DeFelice 2015-06-09 13:27:34 +00:00
parent 2bb0fc00e5
commit 257bc9b1a3

View File

@ -2239,3 +2239,9 @@ func (kl *Kubelet) ListenAndServe(address net.IP, port uint, tlsOptions *TLSOpti
func (kl *Kubelet) ListenAndServeReadOnly(address net.IP, port uint) {
ListenAndServeKubeletReadOnlyServer(kl, address, port)
}
// GetRuntime returns the current Runtime implementation in use by the kubelet. This func
// is exported to simplify integration with third party kubelet extensions (e.g. kubernetes-mesos).
func (kl *Kubelet) GetRuntime() kubecontainer.Runtime {
return kl.containerRuntime
}