Update go mod hcsshim version to fix the kube-proxy issue cannot access service by self nodeip:port on windows

This commit is contained in:
xiaozhang
2019-07-12 17:26:07 +08:00
committed by Jordan Liggitt
parent cc4ca629a9
commit aa2fe07da8
22 changed files with 319 additions and 212 deletions

View File

@@ -2,7 +2,7 @@ package hcn
import (
"encoding/json"
"errors"
"github.com/Microsoft/hcsshim/internal/guid"
"github.com/Microsoft/hcsshim/internal/interop"
"github.com/sirupsen/logrus"
@@ -299,6 +299,10 @@ func GetEndpointByName(endpointName string) (*HostComputeEndpoint, error) {
func (endpoint *HostComputeEndpoint) Create() (*HostComputeEndpoint, error) {
logrus.Debugf("hcn::HostComputeEndpoint::Create id=%s", endpoint.Id)
if endpoint.HostComputeNamespace != "" {
return nil, errors.New("endpoint create error, endpoint json HostComputeNamespace is read only and should not be set")
}
jsonString, err := json.Marshal(endpoint)
if err != nil {
return nil, err