mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Merge pull request #9424 from mesosphere/export-generate-pod-status
add GetRuntime() to Kubelet for easier integration with 3rd party kubele…
This commit is contained in:
commit
f413f30bea
@ -2239,3 +2239,9 @@ func (kl *Kubelet) ListenAndServe(address net.IP, port uint, tlsOptions *TLSOpti
|
|||||||
func (kl *Kubelet) ListenAndServeReadOnly(address net.IP, port uint) {
|
func (kl *Kubelet) ListenAndServeReadOnly(address net.IP, port uint) {
|
||||||
ListenAndServeKubeletReadOnlyServer(kl, address, port)
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user