func (h *KubeHandler) DeleteLoadBalancer(c context.Context, req *provider.DeleteLoadBalancerRequest) (*provider.CommonResponse, error) { glog.V(4).Infof("DeleteLoadBalancer with request %v", req.String()) resp := provider.CommonResponse{} err := h.driver.DeleteLoadBalancer(req.Name) if err != nil { resp.Error = err.Error() } glog.V(4).Infof("DeleteLoadBalancer result %v", resp) return &resp, nil }
func (h *KubeHandler) TeardownPod(c context.Context, req *provider.TeardownPodRequest) (*provider.CommonResponse, error) { glog.V(4).Infof("TeardownPod with request %v", req.String()) resp := provider.CommonResponse{} err := h.driver.TeardownPod(req.PodName, req.Namespace, req.PodInfraContainerID, req.Network, req.ContainerRuntime) if err != nil { glog.Errorf("TeardownPod failed: %v", err) resp.Error = err.Error() } return &resp, nil }
func (h *KubeHandler) UpdateNetwork(c context.Context, req *provider.UpdateNetworkRequest) (*provider.CommonResponse, error) { glog.V(4).Infof("UpdateNetwork with request %v", req.String()) resp := provider.CommonResponse{} req.Network.TenantID = h.driver.ToTenantID(req.Network.TenantID) err := h.driver.UpdateNetwork(req.Network) if err != nil { resp.Error = err.Error() } glog.V(4).Infof("UpdateNetwork result %v", resp) return &resp, nil }