mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
pkg/kubelet: remove unused var in handlers.go
This commit is contained in:
parent
64678b71f3
commit
da6d1da12d
@ -72,7 +72,6 @@ func ResolvePort(portReference util.IntOrString, container *api.Container) (int,
|
|||||||
func (h *httpActionHandler) Run(podFullName string, uid types.UID, container *api.Container, handler *api.Handler) error {
|
func (h *httpActionHandler) Run(podFullName string, uid types.UID, container *api.Container, handler *api.Handler) error {
|
||||||
host := handler.HTTPGet.Host
|
host := handler.HTTPGet.Host
|
||||||
if len(host) == 0 {
|
if len(host) == 0 {
|
||||||
var status api.PodStatus
|
|
||||||
status, err := h.kubelet.GetPodStatus(podFullName, uid)
|
status, err := h.kubelet.GetPodStatus(podFullName, uid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("unable to get pod info, event handlers may be invalid.")
|
glog.Errorf("unable to get pod info, event handlers may be invalid.")
|
||||||
|
Loading…
Reference in New Issue
Block a user